1c='p'
2x=ord(c)
3#it will give you the ASCII value stored in x
4chr(x)
5#it will return back the character
1asciiValue=ord(stringCharacter)
2#example
3asciiValue=ord('A')
4#in this example asciiValue equals 64
1# Program to find the ASCII value of the given character
2
3c = 'A'
4print("The ASCII value of '" + c + "' is", ord(c))
5