Language requiered: Python
Create functions to:
Obtain “input” – create and load data into the lists
Control the iteration
Calculate miles driven
Calculate miles per gallon
Convert miles to kilometers
Convert gallons to liters
Calculate kilometers per liter
Display the output
List:
beginning_miles_list = [ 100, 200, 300, 400, 500, 600 ]
ending_miles_list = [ 400, 500, 600, 700, 800, 900 ]
gallons_used_list = [ 25.0, 18.75, 13.64, 10.71, 9.38, 8.33]
Solution
`Hey,
Note: Brother in case of any queries, just comment inbox I would be very happy to assist all your queries
beginning_miles_list = [100, 200, 300, 400, 500, 600]
ending_miles_list = [400, 500, 600, 700, 800, 900]
gallons_used_list = [25.0, 18.75, 13.64, 10.71, 9.38, 8.33]
fuel_usage_list
OR
OR