write a python program to display ASCII value of entered character.....don't post irrelevant answers..!!!
Answers
Answered by
2
Python program to display ASCII value of entered character.
Explanation:
- First of all, take an input form the user using input method.
- After taking an input, use the ord() method and pass the input as an argument, like ord(x).
- Deintion - The ord() function is used to get the number or ASCII code of the specified character's unicode code.
- Finally, print the value.
Program:
x = input("Enter any character to its ASCII value: ")
print( "The ASCII value of entered character " + x + " is: " , ord(x))
#answerwithquality
#BAL
Attachments:
Answered by
0
x=input("Enter any character")
print("ASCII VALUE OF" +x+"is",ord (x))
Similar questions