The syntax of chr() is:
The chr() method takes a single parameter, an integer i.
The valid range of the integer is from 0 through 1,114,111.
The chr() returns:
If the integer i is outside the range,
ValueError will be raised.
print(chr(97)) print(chr(65)) print(chr(1200))
When you run the program, the output will be:
a A Ұ
When you run the program, ValueError is raised.
It's becauase the argument passed to the chr() method is out of the range.