Kizspy | Question: 23
(Choose 1 answer)
Whenever possible, what is the recommended way to ensure that a file object is properly closed after usage?
A. It doesn't matter
B. By using the with statement
C. By using the try/finally block
D. Making sure that you use the .close() method before the end of the script