Skip to content
Related Articles

Related Articles

Python | Functions | Question 3
  • Difficulty Level : Medium
  • Last Updated : 29 Jan, 2016
GeeksforGeeks - Summer Carnival Banner

What is the output of the following segment :


(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

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :