Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import re #Split the string at every white-space character: txt = "The rain in Spain" x = re.split("\s", txt) print(x)
['The', 'rain', 'in', 'Spain']