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()

  1. A.

    pymysql.open()

  2. B.

    pymysql.connect()

  3. C.

    pymysql.link()

  4. D.

    pymysql.join()

Attempted by 256 students.

Show answer & explanation

Correct answer: B

Explore the full course: Bpsc

Loading lesson…