By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,696 Members | 2,213 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,696 IT Pros & Developers. It's quick & easy.

how to get char ASCII value.

P: n/a
for an example:
'a' value 0x61
'1' value 0x31.

Apr 10 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Apr 10, 12:57 am, veblen....@gmail.com wrote:
for an example:
'a' value 0x61
'1' value 0x31.
How about:

import string

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

Apr 10 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.