You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no need to close the file. Since you've already closed the file objects when reading them into student_notes, there's no need to close them again. The code opens the files using a list comprehension, This creates a list of file objects, but Python automatically closes them once the list comprehension finishes and the file contents have been read into the student_notes list.
In the 6th and 7th line of file app.py there is a file opened but didn't close
Refernce:
The text was updated successfully, but these errors were encountered: