Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

have tried to code this different ways and can not get it to come out correctly. I need to

Question

I have tried to code this different ways and can not get it to come out correctly.
I need to

enter a code that will prompt the user to input an automotive service. The code needs to tell them the service they selected and the price.

Here is my code:

service = {‘Oil change’: 35, ‘Tire rotation’: 19, ‘Car wash’: 7}

service = input(‘Enter desired auto service:n’)

print(‘You entered:’,service)

if service == ‘Oil change’:

  print(‘Cost of’,services,’: $35′);

elif service == ‘Tire rotation’:

  print(‘Cost of’,service,’: $19′);

elif service == ‘Car wash’:

  print(‘Cost of’,service,’: $7′);

else:

  print(‘Error: Requested service is not recognized’)

4.9 Ch 4 Warm up: Automobile service cost (Python 3)

(1) Prompt the user for an automobile service. Output the user’s input. (1 pt) 

Ex:

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"