Python:Ascii character<->decimal representation conversion
ascii, python
Solution
num=ord(char)
char=chr(num)
For example,
>>> ord('a')
97
>>> chr(98)
'b'
You can read more about the built-in functions in Python here.
Problem
Hi I need to be able to convert a ascii character into its decimal equivalent and vice-versa. How can I do that?