Python Program to Find ASCII Value of Character

Python Program to Find ASCII Value of Character: In this program, you’ll learn to find the ASCII value of a character and display it.

It is a numeric value given to different characters and symbols, for computers to store and manipulate. For example, the ASCII value of the letter ‘A’ is 65.

Python Program to Find ASCII Value of Character

Source Code

# Program to find the ASCII value of the given character

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

Output of Program