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
1# Python program to print
2# ASCII Value of Character
3# Hi i'm timothy, feel free to use my code for free
4# In c we can assign different
5# characters of which we want ASCII value
6
7c = 'g'
8# print the ASCII value of assigned character in c
9print("The ASCII value of '" + c + "' is", ord(c))
10
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
1#string of all ascii caracters
2string = '!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~'