Question: The provided module data. py contains data on the average annual retail price of gasoline in the United States from 1950 until 2021. The data

 The provided module data. py contains data on the average annual

retail price of gasoline in the United States from 1950 until 2021.

The provided module data. py contains data on the average annual retail price of gasoline in the United States from 1950 until 2021. The data includes 4 values for each year; the year, the real price in dollars per gallon, an inflation adjustment factor, and the inflation adjusted price in 2021 dollars per gallon. This data is stored as a single list with the values for each year stored consecutively. Write a program that imports this data from the provided data module and parses it to calculate the average retail price of gasoline in each decade (Hint: consider using list slicing to extract the necssary data.) The results should be displayed as a formatted table. This program should run without user input. Terminal

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!