Dumb noob q: ASCII value of a character

Steve Horsley shoot at the.moon
Thu Feb 26 15:33:23 EST 2004


vincent wehren wrote:
> What you're looking for is:
> 
> s = "A B"
> for c in s:
>     print ord(c)
> 
Thank you everyone who answered.

Also, "for c in s:" - hmmm , still learning fast!
Also, overriding str funcion with a local variable - and STILL learning fast!

Regards,
Steve



More information about the Python-list mailing list