How to Find ASCII Value of Character using Python?
Answers
Answered by
0
To get the ASCII code of a character, use the ord() function.
>>> ord('h')
104
>>> ord('a')
97
>>> ord('^')
94
Answered by
0
Python Programming/Text. To get the ASCII code of a character, use the ord() function. To get the character encoded by an ASCII code number, use the chr() function. To know if all the characters present in a string are alphanumeric i.e. they are alphabets and numeric, use the isalnum() function.
Similar questions