Author Archives: Tomasz Decker

Split on Whitespace in Python

A whitespace is a character or set of characters that represent vertical or horizontal space.

The split function takes a single optional argument. If you use this function without a parameter, it separates words by single or series of whitespace characters, as long as there is no other character between them.

Continue reading