How do I convert characters into integers?

Markus Zeindl MarkusZeindl at web.de
Tue Dec 14 17:02:22 EST 2004


Grant Edwards wrote:
> On 2004-12-14, Markus Zeindl <MarkusZeindl at web.de> wrote:
> 
> 
>>I want to write a simple encrypter, but I've got a problem:
>>How can I convert characters into integers?
> 
> 
> $ python
> Python 2.3.4 (#2, Aug 19 2004, 15:49:40) 
> [GCC 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)] on linux2
> Type "help", "copyright", "credits" or "license" for more
> information.
> 
>>>>ord('A')
> 
> 65
> 
thank you!



More information about the Python-list mailing list