How do I convert characters into integers?
Grant Edwards
grante at visi.com
Tue Dec 14 17:48:29 EST 2004
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
--
Grant Edwards grante Yow! .. does your DRESSING
at ROOM have enough ASPARAGUS?
visi.com
More information about the Python-list
mailing list