map character to ascii number python code example
Example 1: python convert ascii to char
>>> chr(104)
'h'
>>> chr(97)
'a'
>>> chr(94)
'^'
Example 2: convert characters in ascii in python
# Program to find the ASCII value of the given character
c = 'A'
print("The ASCII value of '" + c + "' is", ord(c))