0
What's the advantage of closing a file?
2 Respuestas
0
One should always close the files that were opened previously as python executes the program in small modules. It makes error debugging easy
0
Closing files you free resources like memory and file system. For example, if you open a file to write it locked to prevent others modification at same time. When close the file it unlocked to allow others modifications