Q.

fo.close()

A. compilation error
B. runtime error
C. no output
D. flushes the file when closing them
Answer» D. flushes the file when closing them
Explanation: the method flush() flushes the internal buffer. python automatically flushes the files when closing them. but you may want to flush the data before closing any file.
2.6k
0
Do you find this helpful?
22

Discussion

No comments yet