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