Newbie question

Brian Quinlan brian at sweetapp.com
Sat Mar 9 17:00:58 EST 2002


> How do you get the ordinal value (ASCII) of a character? For example,
to
> make a ROT13 program.

You use the built-in function "ord". e.g.

>>> ord('a')
97

Cheers,
Brian





More information about the Python-list mailing list