The string method `str.split` has a parameter `maxsplit` that determines the maximum number of splits that will be performed. The returned list with the splits (and possibly the remainder of the string) has a maximum length of `maxsplit + 1`.
4 likes 0 replies
?