Q.

Which function is used to close a file in python?

A. close()
B. stop()
C. end()
D. closefile()
Answer» A. close()
Explanation: f.close()to close it and free up any system resources taken up by the open file.
1.5k
0
Do you find this helpful?
1

Discussion

No comments yet