how to get char ASCII value.

2007-04-10 Thread veblen . lee
for an example:
  'a'  value 0x61
  '1'  value 0x31.

-- 
http://mail.python.org/mailman/listinfo/python-list

Re: how to get char ASCII value.

2007-04-10 Thread 7stud
On Apr 10, 12:57 am, [EMAIL PROTECTED] wrote:
 for an example:
   'a'  value 0x61
   '1'  value 0x31.

How about:

import string

for char in string.lowercase:
print hex(ord(char) )

-- 
http://mail.python.org/mailman/listinfo/python-list