Exam GPYC All QuestionsBrowse all questions from this exam
Question 9

Which of the following would produce this list?

[65, 66, 67, 68]

    Correct Answer: C

    The correct option is the one that uses `map(ord, 'ABCD')`. The `ord` function returns the Unicode code point for a given character. Thus, `map(ord, 'ABCD')` converts each character in the string 'ABCD' to their respective Unicode code points, resulting in the list [65, 66, 67, 68].

Discussion
VenudharOption: A

The option is a

block933Option: D

This answer doesn't work in Python3 only python2

howefo8913

range and int