I want to get, given a character, its ASCII value.
ASCII
For example, for the character a, I want to get 97, and vice versa.
a
97
Use chr() and ord():
chr()
ord()
>>> chr(97) 'a' >>> ord('a') 97