R

Rajeev Malhotra • 3.97K Points
Extraordinary

Q. What is the output of the following code?

Code:
chr(ord('A'))
  • (A) 65
  • (B) A
  • (C) a
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 109
  • Filed under category Python

Explanation by: Rajeev Malhotra
The ord() function converts a character to ASCII and chr() converts the ASCII character to a character.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics