Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Python | Functions | Question 3

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads