Documentation

Function defined in library builtins

chr(code_point)

chrcode_point

Converts a Unicode code point into a character.

Inverse of the function ord.

code_pointUnicode code point

Character represented by the code point
Code
chr(65)
Result
'A'
Code
chr(97)
Result
'a'

See also chr in the official documentation

Logo of PyTamaro

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy PolicyPlatform Version ad4099b2 (Thu, 11 Jun 2026 13:22:45 GMT)