[Tutor] how to strip whitespaces from a string.
flaxeater at yahoo.com
Sat Oct 9 16:43:28 CEST 2004
Lloyd Kvam wrote:
>>>>s = " I am Learning Python "
>>>>''.join( s.split() )
I guess it always helps to look a little closer at the documentation.
just looked this up and of course it's right there. This method is
because it will work on any whitespace.
More information about the Tutor