how to get int value of char in python code example
Example 1: python convert ascii to char
>>> ord('h')
104
>>> ord('a')
97
>>> ord('^')
94
Example 2: ascii values in python of
c = 'p'
print("The ASCII value of '" + c + "' is", ord(c))
>>> ord('h')
104
>>> ord('a')
97
>>> ord('^')
94
c = 'p'
print("The ASCII value of '" + c + "' is", ord(c))