Accepting text input
John Salerno
johnjsal at NOSPAMgmail.com
Wed May 14 22:55:57 EDT 2008
On Thu, 15 May 2008 02:36:29 GMT
Collin <collinyeung at shaw.ca> wrote:
> So the .lower() string method is just to convert the string to lowercase
> letters so that you don't have to type a bunch of if - then statements
> in both cases, I'm assuming?
You can also type:
dir(str)
to get a list of all the methods you can call on a string object. If you see anything interesting, then type:
help(str.<method_name>) # e.g. help(str.split)
to find out how it works. :)
More information about the Python-list
mailing list