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.

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to