03 September 2010

Python ord() and chr() built-in functions

http://docs.python.org/library/functions.html#ord
http://docs.python.org/library/functions.html#chr

They are each other's inverse function. Both of them are handy for obtaining ASCII values of a Unicode character.

No comments: