Stripping whitespace

ryan k ryan at
Wed Jan 23 19:50:02 CET 2008

Hello. I have a string like 'LNAME
PASTA               ZONE'. I want to create a list of those words and
basically replace all the whitespace between them with one space so i
could just do lala.split(). Thank you!

Ryan Kaskel

More information about the Python-list mailing list