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

John Machin sjmachin at lexicon.net
Tue May 1 18:55:08 EDT 2007


On May 2, 7:06 am, "tedpot... at gmail.com" <tedpot... at gmail.com> wrote:

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

E.g. download from here:
http://www.gutenberg.org/ebooks/10000
then in Python, use:
text = open("the_file.txt").read()

HTH,
John




More information about the Python-list mailing list