Run
import re pattern = '\s+' string = 'Today is a present' result = re.split(pattern, string) print(result)
Output