making all letters Caps/Small Letters
David Tweet
davidtweet at gmail.com
Fri Dec 14 04:54:43 EST 2007
>>> "THIS IS A STRING".lower()
'this is a string'
>>> "THIS IS A STRING".title()
'This Is A String'
>>> "this is a string".upper()
'THIS IS A STRING'
You can browse all the string methods by doing
>>> dir(str)
On Dec 14, 2007 1:30 AM, Merrigan <charl.loubser at gmail.com> wrote:
> Hi There,
>
> I'm sure I have done this before, but cannot remember how, or find out
> how to do it quickly - but is there a way/function/something in python
> to make all the letters of a raw_input() string small/capital letters?
>
> Thanks!
>
> -- Merrigan
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
-David
More information about the Python-list
mailing list