Program to find the ASCII value of a character

# Find ASCII Value of a Character
char = input("Enter a character: ")
ascii_value = ord(char)
print("The ASCII value of", char, "is", ascii_value)
Output:
Enter a character: A
The ASCII value of A is 65

Leave a Reply

Your email address will not be published. Required fields are marked *