On Thu, Mar 22, 2012 at 1:48 PM, Rodrick Brown <[email protected]> wrote: > Why wasnt the t removed ?
Because str.strip() only removes leading or trailing characters. If
you want to remove all the t's, use str.replace:
'this is a test'.replace('t', '')
Cheers,
Ian
--
http://mail.python.org/mailman/listinfo/python-list
