How can I split by 1 or more occurrences of a delimiter in Python?

Just do not give any delimeter?

>>> a="test                            result"
>>> a.split()
['test', 'result']

Leave a Comment