Newbie question

Lee Harr missive at frontiernet.net
Sat Mar 9 17:20:50 EST 2002


On Sat, 9 Mar 2002 21:34:26 -0000, Nick <nick at nick8325.freeserve.co.uk> wrote:
> How do you get the ordinal value (ASCII) of a character? For example, to
> make a ROT13 program.
> 
> 

>>> ord('a')
97

>>> 'abcdef'.encode('rot13')
'nopqrs'


[the second one requires 2.2]




More information about the Python-list mailing list