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

20.7. 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 20.31, “ord(): Find the numeric code for a character”.

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