Python program to find the ASCII value of a character
ADVERTISEMENTS
Python program to find the ASCII value of a character. There are you will learn how to find the ASCII value of a character in Python language.
Let us understand this example through the Python program:
# Python program to find the ASCII value of a character
print("Enter a character::")
p = str(input())
print("\nASCII value of ", p, " = ", ord(p))
Output:
Enter a character::
h
ASCII value of h = 104