Home / Questions / How do you close a database connection in Python?
Explanatory Question

How do you close a database connection in Python?

👁 259 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Answer: You can use the close() method of a connection object to close a database connection.