Question
(Heres the code I currently have. Need to have that result on the screen there. Anything to add to make that like that?) service_choice1 =
(Heres the code I currently have. Need to have that result on the screen there. Anything to add to make that like that?)
service_choice1 = input() service_choice2 = input()
services = {'Air freshener': 1, 'Rain repellent': 2,
'Tire shine': 2, 'Wax': 3, 'Vaccum': 5}
base_wash = 10
total = 10
print("ZyCar Wash")
print("Base car wash -- $10")
if service_choice1 in services.keys(): print(service_choice1+" -- $"+str(services[service_choice1])) total += services[service_choice1]
if service_choice2 in services.keys(): print(service_choice2+" -- $"+str(services[service_choice2])) total += services[service_choice2]
print("----")
print("Total price: $" + str(total))
Input Vacuum Air freshener ZyCar Wash Base car wash Air freshener $10 Your output $1 --- Total price: $11 -- $10 ZyCar Wash Base car wash Vacuum $54 Air freshener -- Expected output $1 --- Total price: $16Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started