What does the ord() function return in Python?
-
A
The character for a number
-
B
The Unicode code point of a character
Correct answer
-
C
The length of a string
-
D
The index of a character
Correct answer
B. The Unicode code point of a character
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ