Q.

print(f.closed)

A. true
B. false
C. none
D. error
Answer» A. true
Explanation: the with statement when used with open file guarantees that the file object is closed when the with block exits.
670
0
Do you find this helpful?
8

Discussion

No comments yet