Next / Previous / Contents / TCC Help System / NM Tech homepage

13.5. chr(): Get the character with a given code

For arguments n in the range 0 to 255, this function returns a one-character string containing the character that has code n. Compare Section 13.26, “ord(): Find the numeric code for a character”.

>>> chr(65)
'A'
>>> chr(0)
'\x00'