The Python Oracle

How do I split a multi-line string into multiple lines?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Horror Game Menu Looping

--

Chapters
00:00 Question
00:26 Accepted answer (Score 521)
00:44 Answer 2 (Score 201)
01:18 Answer 3 (Score 57)
03:39 Answer 4 (Score 21)
03:57 Thank you

--

Full question
https://stackoverflow.com/questions/1724...

Accepted answer links:
[splitlines()]: https://docs.python.org/3/library/stdtyp...

Answer 3 links:
[the ASCII linebreak representation is OS-dependent]: https://en.wikipedia.org/wiki/Newline#Re...
[Reading files in text mode]: https://docs.python.org/2/tutorial/input...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #string #split

#avk47