SyntaxFix
Write A Post
Hire A Developer
Questions
str.splitlines method should give you exactly that.
str.splitlines
>>> data = """a,b,c ... d,e,f ... g,h,i ... j,k,l""" >>> data.splitlines() ['a,b,c', 'd,e,f', 'g,h,i', 'j,k,l']