Which of the following type of function used with strings in the Python…
2024
Which of the following type of function used with strings in the Python language returns the character with the highest ASCII value?
- A.
len ()
- B.
hvalue ()
- C.
max ()
- D.
long ()
Attempted by 111 students.
Show answer & explanation
Correct answer: C
For strings in Python, `max()` returns the character with the highest Unicode/ASCII ordering value among the characters.