# take input
ch = input("Enter any character: ")
# printing ascii value of character
print("The ASCII value of " + ch + " is:", ord(ch))
ASCII value
To calculate the ASCII value of a given character
0 Comments
Add Comment
Log in to add a comment
# take input
ch = input("Enter any character: ")
# printing ascii value of character
print("The ASCII value of " + ch + " is:", ord(ch))
ASCII value
To calculate the ASCII value of a given character
Log in to add a comment