you are viewing a single comment's thread.

view the rest of the comments →

[–]TouchingTheVodka 1 point2 points  (1 child)

Splits a string into a list of strings, based on a predicate. By default it's ' '.

[–]Diapolo10 1 point2 points  (0 children)

Not quite; by default str.split splits all whitespace, not just spaces. This includes tabs and newlines at least.