Is there a .tolower() for a string??

Mark Hahn mark at hahnca.com
Wed Nov 26 14:16:36 EST 2003


> I have a string say
>
> a = "Hello how are YOU"
>
> I want to end up with
>
> a = "hello how are you'
>
> Isn't there a built in method for changing a string to lowercase?
>

>>> 'aBc'.lower()
'abc'






More information about the Python-list mailing list