Plagiarism-checker-Python
Plagiarism-checker-Python copied to clipboard
Close the opened file in app.py
In the 6th and 7th line of file app.py there is a file opened but didn't close
Refernce:
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.