Question: 4 . 7 . 1 : Database programming with Python. 5 4 6 3 8 6 . 3 9 5 9 5 7 0 .

4.7.1: Database programming with Python.
546386.3959570.qx3zqy7
from mysql import connector # load connector functions
connection = connector._____(A)_____(
user='Blaise',
password='Pascal',
host='localhost',
database='college'
)
rowcursor = connection._____(B)_____()
query = 'SELECT * FROM Room'
_____(C)_____._____(D)_____(query)
for row in rowcursor._____(E)_____(): print(row)
_____(F)_____.close()
_____(G)_____.close()The Python code below prints out the names and capacities of all the rooms in the database. Fill in the missing keywords.(A)(B)(C)(D)(E)(F)(G)
connect
cursor
1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!