Which of the following functions is used to close a file in Python?

1
file.end()
2
file.close()
3
file.terminate()
4
file.finish()

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation