How to convert an integer to a character in Python?

PythonServer Side ProgrammingProgramming

Python's built-in function chr() returns a sunicode character equivalent of an integer between 0 to 0x10ffff.

>>> chr(a)
'd'
>>> chr(300)
'Ĭ'
>>> chr(65)
'A'
raja
Published on 15-Feb-2018 08:08:15
Advertisements