Given a string
containing a single character, sord( returns that character's numeric
code. Compare Section 20.7, “s)chr(): Get the character with a given
code”.
>>> ord('A')
65
>>> ord('\x00')
0
>>> ord(u'\u262e')
9774
>>> hex(9774)
'0x262e'