"Lutz Horn" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
Hi,
2008/4/30 Gary Herron <[EMAIL PROTECTED]>:
SL wrote:
> How can I compute with the integer values of characters in python?
> Like 'a' + 1 equals 'b' etc
You can get an integer value from a character with the ord() function.
So just for completion, the solution is:
chr(ord('a') + 1)
'b'
thanks :) I'm a beginner and I was expecting this to be a member of string
so I couldnt find it anywhere in the docs.
--
http://mail.python.org/mailman/listinfo/python-list