Write a python program to print the ASCII value of a character.
PROGRAM:
# ASCII stands for American Standard Code for Information Interchange.
#Syntax for find the ASCII value of a character is : ord(character)
character=input("Enter the character:")
print("The ASCII value of a \'"+str(character)+"\' is",ord(character))
OUTPUT:
No comments:
Post a Comment