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?

  1. A.

    len ()

  2. B.

    hvalue ()

  3. C.

    max ()

  4. 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.

Explore the full course: Rssb Senior Computer Instructor