πŸ“Š Python
Q. What is the output of the following code?
Code:
chr(ord('A'))
  • (A) 65
  • (B) A
  • (C) a
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) A

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
163
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Rajeev Malhotra
Publisher
πŸ“ˆ
82%
Success Rate