Python Function Reference

split
Return a list of the words in the string, using sep as the delimiter string.
Python 3.13
str.split(sep=None, maxsplit=-1)
sep
The delimiter according to which to split the string.
maxsplit
Maximum number of splits to do.
Examples
Python 3.13
>>> 'hello world'.split(' ')
['hello', 'world']