Computer Science, asked by pricilaEkka7915, 1 year ago

How to Find ASCII Value of Character using Python?

Answers

Answered by rahulmandviya
0

To get the ASCII code of a character, use the ord() function.

>>> ord('h')

104

>>> ord('a')

97

>>> ord('^')

94

Answered by Smitvan
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