Write a python program to print the ASCII Value of a character.

 

            

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




Copyright Ⓒ 2022 | Mechpedia | All Right Reserved.