Re: making all letters Caps/Small Letters

2007-12-14 Thread Chris
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

Re: making all letters Caps/Small Letters

2007-12-14 Thread Martin Blume
"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

Re: making all letters Caps/Small Letters

2007-12-14 Thread David Tweet
>>> "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

Re: making all letters Caps/Small Letters

2007-12-14 Thread Peter Otten
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

making all letters Caps/Small Letters

2007-12-14 Thread Merrigan
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