big letter -> small letter

Scott David Daniels Scott.Daniels at Acm.Org
Tue Jul 6 10:09:38 EDT 2004


Pierre-Frédéric Caillaud wrote:

... yet another good answer about what you _should_ want to do....
>>>> How can i change big letter to small letter ?
>>>> When i tried char=char+32 i received error that can not add
>>>> int to sring.

Everyone else has given better ways to get the answer you want.
If, however, you are just playing with representations, and
exploring, you might try, for example:

     char = 'Q'
     print char, chr(ord(char) + 32)

-- 
-Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list