SyntaxFix
Write A Post
Hire A Developer
Questions
inputString.splitlines()
Will give you a list with each item, the splitlines() method is designed to split each line into a list element.
splitlines()