English

Explain the following built-in function. chr()

Advertisements
Advertisements

Question

Explain the following built-in function.

chr()

Answer in Brief
Advertisements

Solution

Function Description Syntax Example
chr() Returns the Unicode character for the given ASCII value. This function is inverse of the ord() function. chr (i)
c=65
d=43 
print (chr (c)) 
print(chr (d)) 
Output: A +
shaalaa.com
Introduction to Python Functions
  Is there an error in this question or solution?
Chapter 7: Python functions - Evaluation [Page 113]
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×