Run
string1 = '''Welcome to pythonexamples.org''' #split string by single new-line chunks = string1.split('\n') print(chunks)
Output