ASCII VALUE
Aim: Implement a Python program to find
the ASCII value of the given character
Program:
#
Take character from user
c
= input("Enter a character: ")
print("The
ASCII value of '" + c + "' is",ord(c))
Output
Enter
a character: p
The
ASCII value of 'p' is 112
0 Comments:
Post a Comment