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
LAST CODE:
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 = []fuel_usage_list.append(beginning_miles_list) # append the beginning miles list to fuel_usage_list.fuel_usage_list.append(ending_miles_list) # append the ending miles list to fuel_usage_list.fuel_usage_list.append(gallons_used_list) # append the gallons used list to fuel_usage_list.# now fuel_usage_list is a list of 3 elements, or rows, each containing a list of 6 elements,
PayPal Gateway not configured
PayPal Gateway not configured