chr(i)

The chr() function converts an integer to its corresponding Unicode character.

Parameters

The chr() function accepts one parameter:

  • number - an integer from 0 to 1,114,111

Return Value

  • Returns the character corresponding to the numeric representation. i must be a positive integer.

Examples

chr(97)  # 'a'