[Tutor] str.strip() help

Chris Hengge pyro9219 at gmail.com
Thu Nov 2 02:58:14 CET 2006


I can't figure out a way to .strip("string")

Example might look like this:

>>> myStr = "I want to strip my words."
>>> print myStr.strip("my")
>>> 'I want to strip words.'

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061101/05b24ce0/attachment-0001.htm 


More information about the Tutor mailing list