Question: *PYTHON* Create a function called constructDB that has no input parameters and will create a database called baseball and a table called players in that

*PYTHON*

Create a function called constructDB that has no input parameters and will create a database called baseball and a table called players in that database. Each row of the table should be able to hold the information for one baseball player. The table players should consist of 8 columns: 4 of which store integer values (year, at bats, runs, hits), 3 of which store string values (last, first, league), and 1 which stores a double (average). The function should not try and create the database or the table if they already exist.

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!