Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
txt = "Thank you for the music\nWelcome to the jungle" x = txt.splitlines(True) print(x)
x
txt
=
"Thank you for the music\nWelcome to the jungle"
x
=
txt
.
splitlines
(
True
)
print
(
x
)
['Thank you for the music\n', 'Welcome to the jungle']