Python program to find the ASCII Value of entered character

# Input a character from the user
char = input("Enter a character: ")

# Get the ASCII value of the character
ascii_value = ord(char)

# Print the ASCII value
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 *