How to convert an integer to a unicode character in Python?

PythonServer Side ProgrammingProgramming

Python library’s chr() function converts Unicode character associated to any interger which is between 0 an 0x10ffff.

>>> chr(36)
'$'
>>> chr(97)
'a'
>>> chr(81)
'Q'


raja
Published on 08-Feb-2018 18:59:44
Advertisements