Explanation: f.close()to close it and free up any system resources taken up by the open file.
Q. Which function is used to close a file in python?
β
Correct Answer: (A)
close()
Explanation by: Mr. Dubey
f.close()to close it and free up any system resources taken up by the open file.
Discussion
Question Analytics
283
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
82%
Success Rate