# 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