python convert special characters to ascii code example
Example 1: python convert ascii to char
>>> ord('h')
104
>>> ord('a')
97
>>> ord('^')
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))