How to Use Python chr() Function
chr() function in Python is very easy to use, chr() returns string with a Unicode code equal to the integer specified. Let’s look at example for better understanding.
Example
Python3
# chr() example print ( chr ( 69 )) |
Output
E
chr() Function in Python
chr() function returns a string representing a character whose Unicode code point is the integer specified.
chr() Example:
Python3
num = 97 print ( "ASCII Value of 97 is: " , chr (num)) |
Output
ASCII Value of 97 is: a