On Dec 14, 11:30 am, Merrigan <[EMAIL PROTECTED]> 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?
>
> Thank
"Merrigan" schrieb im>
> 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?
>
"upper might help".upper()
"OR LOWER".lower()
H
>>> "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 <[EMAIL PROTECTED]> wrote:
> Hi There,
>
> I'm sure I
Merrigan wrote:
> 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?
Typing
>>> dir("")
in the interactive interpreter gives you
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-l