How to get the ASCII value of a character
From here: The function ord() gets the int value of the char. And in case you want to convert back after playing with the number, function chr() does the trick. >>> ord(‘a’) 97 >>> chr(97) ‘a’ >>> chr(ord(‘a’) + 3) ‘d’ >>> In Python 2, there was also the unichr function, returning the Unicode character … Read more