Open In App

Python | Functions | Question 3

Like Article
Like
Save Article
Save
Share
Report issue
Report

What is the output of the following segment :

chr(ord('A'))

(A) A
(B) B
(C) a
(D) Error


Answer: (A)

Explanation: ord() function converts a character into its ASCII notation and chr() converts the ASCII to character.

Quiz of this Question


Last Updated : 28 Jun, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads