Python Program to Find ASCII Value of Character

bookmark

# 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