How can I get the ascii code of a charter in python?

tedpottel at gmail.com tedpottel at gmail.com
Tue May 1 17:06:21 EDT 2007


Hi,
a python newbe needs some help,

I read the python doc at
http://docs.python.org/lib/module-curses.ascii.html

I tried
Import curses.asciicurses.ascii
Print ascii('a')

I get an error saying module curses.ascii8 does not exsist.

How can I get the ascii code of a charter in python?

-Ted




More information about the Python-list mailing list