Result Size: 625 x 571
demo_ref_string_splitlines2.py:
x
 
txt = "Thank you for the music\nWelcome to the jungle"
x = txt.splitlines(True)
print(x)
C:\Users\My Name>python demo_string_splitlines2.py
['Thank you for the music\n', 'Welcome to the jungle']