?
What does the built-in function chr() do in Python?
Answer & Solution
Correct Answer:
Option
A
The correct answer is Option A: Returns a string representing a character whose Unicode code point is the integer.
The
The
chr() function in Python is used to return a string representing a character whose Unicode code point is the integer passed as an argument. For example, chr(65) returns the string 'A' because the Unicode code point of the character 'A' is 65. Therefore, the function converts integer Unicode code points to their corresponding characters.
Join the Discussion
Login to post a comment or share your explanation.
Login