0

What could happen if I open a file but forget to use close() on it in Python?

My old programming teacher told me that is bad practice NOT to close files after using open() on them. He mentioned that the reference goes to 0.

Why is closing files important in Python?

0 Answers0