Run
str = 'Welcome\nto\nPythonExamples.org' #split string by single space chunks = str.split('\n') print(chunks)
Output