Question: 1. Create a new file under the module_8 directory and name it pysports_queries.py. 2. Write the code to connect to your MySQL pysports database. 3.

1. Create a new file under the module_8 directory and name it pysports_queries.py.

2. Write the code to connect to your MySQL pysports database.

3. Write two select queries, one for the team table and one for the player table. SELECT team_id, team_name, mascot FROM team.

4. Using a for loop, iterate over the cursor and display the results.

Ignore question 2

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!