I am working on the assignment, 4.9 Warm up: Automobile service cost (python 3)
Question
I am working on the assignment, 4.9 Warm up: Automobile service cost (python 3)
(1) Prompt the
user for an automobile service. Output the user’s input
(2) Output the price of the requested service
My code is:
autoServ = input(‘Enter desired auto service:n’)
print(‘You entered:’, autoServ)
if autoServ == ‘Oil change’:
print(‘Cost of’,autoServ,’: $35′)
elif autoserv == ‘Tire rotation’:
print(‘Cost of’,autoServ,’: $19′)
elif autoServ == ‘Car wash’:
print(‘Cost of’,autoServ,’: $7′)
else:
print(‘Error: Requested service is not recognized’)
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
