CBSE Class 12 Computer Science Question 20 of 47

Interface Python with SQL — Question 10

Back to all questions
10
Question

Question 10

Which command is used for cleaning up the environment?

  1. my.closed()
  2. is.end()
  3. con.quit()
  4. mycon.close()
Answer

mycon.close()

Reason — The mycon.close() command is used for cleaning up the environment by closing the database connection.