Which method is used to create a connection object between a Python script and…
2026
Which method is used to create a connection object between a Python script and a MySQL database assuming that the module pymysql is imported?
Answer: B. pymysql.connect()
- A.
pymysql.open()
- B.
pymysql.connect()
- C.
pymysql.link()
- D.
pymysql.join()
Attempted by 256 students.
Show answer & explanation
Correct answer: B
Loading lesson…