In [5]:
import re

In [13]:
a = 'hello there sucker'
print (a)


hello there sucker

In [15]:
re.split('\s+', a)


Out[15]:
['hello', 'there', 'sucker']

In [ ]: