how to get char ASCII value.

Discussion in 'Python' started by veblen.lee@gmail.com, Apr 10, 2007.

  1. Guest

    for an example:
    'a' value 0x61
    '1' value 0x31.
     
    , Apr 10, 2007
    #1
    1. Advertising

  2. 7stud Guest

    On Apr 10, 12:57 am, wrote:
    > for an example:
    > 'a' value 0x61
    > '1' value 0x31.


    How about:

    import string

    for char in string.lowercase:
    print hex(ord(char) )
     
    7stud, Apr 10, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Haas
    Replies:
    8
    Views:
    117,740
    Sambit
    Oct 26, 2011
  2. lovecreatesbeauty
    Replies:
    1
    Views:
    1,156
    Ian Collins
    May 9, 2006
  3. Jim Langston
    Replies:
    5
    Views:
    446
    Jonathan Mcdougall
    May 6, 2006
  4. Aneesh E Warrier
    Replies:
    6
    Views:
    1,577
  5. sajit

    Ascii value of char. in C#

    sajit, Apr 7, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    2,112
    Ben Rush
    Apr 7, 2007
Loading...

Share This Page