Chr() method in Python Built in Function
chr method in built in function returns a character of the given Unicode in the input.
Parameter
- chr method has single parameter which is an integer.
- The range of the integer is from 0 to 1 and 114, 111.
- If the integer is outside the range then an error will be raised.
Example-1:
Use of negative integer
x = chr(-9) print(x)
Output:

Example-2:
Use of float numbers
x = chr(9.85) print(x)
Output:

Example-3:
Use of positive integer
x = chr(7) print(x)
Output:

Example-4:
Use of complex numbers
x = chr(8+5j) print(x)
Output:
