strings.split

Functions

split(→ list)

Will split the string up into all the values separated by the separator

Module Contents

strings.split.split(string: str, separator: str = ' ') list

Will split the string up into all the values separated by the separator (defaults to spaces)

>>> split("apple#banana#cherry#orange",separator='#')
['apple', 'banana', 'cherry', 'orange']
>>> split("Hello there")
['Hello', 'there']
>>> split("11/22/63",separator = '/')
['11', '22', '63']
>>> split("12:43:39",separator = ":")
['12', '43', '39']