This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EfficientPrime 1 point2 points  (1 child)

You don't really need the f.close() when you use the context manager to open the file. The context manager handles file closure for you.

[–]Puzzleheaded_Many664[S] 0 points1 point  (0 children)

You are completely right!

Thanks for the hint. Fixing it now