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
Get step-by-step solutions from verified subject matter experts
