Python Program to Find ASCII Value of Character

 # Program to find the ASCII value of the given character


c = 'p'

print("The ASCII value of '" + c + "' is", ord(c))

Output

The ASCII value of 'p' is 112

0 Comments