feedback

(Solution document) Assignment Instructions-Python Develop a Python application that incorporates using appropriate data types and provides program output in a logical...


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?

 







About this question:

Pay using PayPal (No PayPal account Required) or your credit card. All your purchases are securely protected by .
SiteLock