Develop a python application that incorporates using


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 my code but, I keep getting an error:

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: ' )

Ending_odometer = input('Enter Ending Odometer Reading: ' )

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

dict = {'Car Brand': Car_Brand,'Car Model':Model , 'Year': Year, 'Starting Odometer':Starting_Odometer, 'Ending Odometer':Ending_odometer}

Why would Python give a SyntaxError:unexpected character after line continuation character and point at the n? Does everything else look correct on the code?

Solution Preview :

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

Now Priced at $20 (50% Discount)

Recommended (91%)

Rated (4.3/5)