How to Split a String in Python
Author: Newtum
This example covers the use of the `str.split()` method to break a string into a list of substrings based on a specified delimiter.
Basic Splitting
By default, `split()` divides a string at each whitespace character (like space, tab, or newline) and returns a list of the resulting words.
Splitting by a Specific Delimiter
You can provide a delimiter as an argument to `split()` to divide the string at every occurrence of that delimiter.
Limiting the Number of Splits
The `maxsplit` parameter lets you control the maximum number of splits that will occur. The rest of the string is returned as the last element of the list.