CBSE Class 12 Computer Science
Question 4 of 15
Interface Python with SQL — Question 3
Back to all questionsThe connect() function is used to establish a connection to the MySQL database from a Python application. It returns a MySQLConnection object, which we can then use to perform various operations on the MySQL database.