SyntaxFix
Write A Post
Hire A Developer
Questions
Create a list of lists:
with open("/path/to/file") as file: lines = [] for line in file: # The rstrip method gets rid of the "\n" at the end of each line lines.append(line.rstrip().split(","))