Question: in PYTHON Write a function update() that converts the column in the database file example.db from a percent to a decimal. For instance, 98.7 percent

in PYTHON

Write a function update() that converts the column in the database file "example.db" from a percent to a decimal. For instance, 98.7 percent in the original database file should be converted to the decimal 0.987.

Write another function high avg() that prints the average of all scores that are above 50%.

(use SQL commands to extract the average from the database file)

EXAMPLE.DB:

CarID Score

Ca 98.7

Ca 82.3

Ca 79.1

Ca 29.6

Ca 49.5

Ca 90.4

Ca 32.3

Ca 11.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!