Closed Mithil467 closed 3 years ago
It is a good idea to use with open(filename) as f: instead of using a combination of open and close. Python ensures the resources are closed with the context.
with open(filename) as f:
open
close
The files to be changed are -
It is a good idea to use
with open(filename) as f:
instead of using a combination ofopen
andclose
. Python ensures the resources are closed with the context.The files to be changed are -