SyntaxFix
Write A Post
Hire A Developer
Questions
The str.split method will automatically remove all white space between items:
str.split
>>> str1 = "a b c d" >>> str1.split() ['a', 'b', 'c', 'd']
Docs are here: http://docs.python.org/library/stdtypes.html#str.split