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