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.
When you run the program, the output will be:
When you run the program, ValueError is raised.
It's becauase the argument passed to the chr() method is out of the range.