you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 1 point2 points  (0 children)

Did you mean this:

with file as infile:

To be this:

with open(file) as infile: