Develop a python application that incorporates using


Assignment Instructions-Python

Develop a Python application that incorporates using appropriate data types and provides program output in a logical manner. Your program should prompt a user to enter a car brand, model, year, starting odometer reading, an ending odometer reading, and the estimated miles per gallon consumed by the vehicle. Store your data in a dictionary and print out the contents of the dictionary.

This is the code I wrote:

Car Brand = input('Enter Car Brand: ', car_brandn)

Model = input('Enter Car Model: ' car_modeln)

Year = input('Enter Year: ' car_yearn)

Starting Odometer = input('Enter Starting Odometer Reading: ' start_odometern)

Ending odometer = input('Enter Ending Odometer Reading: ' end_odometern)

Estimated MPH Consumed by Vehicle = input('Enter Estimated MPH Consumed by Vehicle: ' mile_gallon_consumptionn)

car_brand_model = {}

car_year= {}

start_odometer = {}

end_odometer = {}

mile_gallon_consumption = {}

Is this correct or can you please assist me with what I am doing wrong?

 

Solution Preview :

Prepared by a verified Expert
Business Management: Develop a python application that incorporates using
Reference No:- TGS02675866

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)