Python ord() built-in function
Python ord() built-in function
From the Python 3 documentation Given a string representing one Unicode character, return an integer representing the Unicode code point of that character.
Examples
>>> ord('1')
# 49
>>> ord('a')
# 97