//
sign in
Post
by @danabra.mov
PostEmbed
by @danabra.mov
Record
by @jimpick.com
Record
by @atsui.org
+ new component
Post
“So the next time you need to split a string into lines, don't use the string split method.” Read more 👉 pym.dev/splitlines/ #Python
2d
To split text into lines in Python, use the splitlines() method, not the split() method.
pym.dev
Why splitlines() instead of split("\n")?
Trey Hunner