Python Program To Find ASCII value of a character
ASCII: ASCII is an acronym stands for American Standard Code for Information Interchange. In ASCII, a specific numerical value is given to different characters and symbols, for computers to store and manipulate.
It is case sensitive. Same character, having different format (upper case and lower case) has different value. For example: The ASCII value of “A” is 65 while the ASCII value of “a” is 97.
See this example:
- c = input(“Enter a character: “)
- print(“The ASCII value of ‘” + c + “‘ is”,ord(c))
Output: