I am completely lost on how to out the two strings together, can someone help me
ID: 3906020 • Letter: I
Question
I am completely lost on how to out the two strings together, can someone help me please.
Bian Secure https://learn.zybooks.com/zybook TULSACCCSC?2473Willissum.m2018 chapter/12/sect mmer2017 g Books My library osc1 2473 home 12.9 Ch 3 Warm up Automobile service cost (C) zyBooks catalog ) Help FAQ ? Brian Chamberlain . C) h 1 Warm up: BasicLb utput with variables (O) h 1 Program ASCll art (c) Lab Ch 2 Warm up Variables, nput, and casting (C) Ch 2 Program Painting a (1) Prompt the user for an automobile service Each service type is composed of two strings. output the user's input (1 Foll2017 pt Ex Enter deaired auto service: 0i1 change You entered: 0i1 change wall (C) Ch 3 Warm up: Automobile Lab service cost (C) (2) Output the price of the requested service. (4 pts) ch 3 Program Automobile service invoice (C) ch 4 Wam upt Drawinga right triangle (C) Ch 4 Program Drawing h 011 change You entezed: 01 change half arrow (C) ot of 4l change: $35 welghts (C) team s Ch 6 Warm up. Text Oil change . Tire rotation 319 analyzer & madifier (G) id norlisted 0 Type here to searchExplanation / Answer
service = input('Enter desired auto service: ') print('You entered: ' + service) cost = 0 if service == 'Oil change': cost = 35 elif service == 'Tire rotation': cost = 19 elif service == 'Car wash': cost = 7 if cost == 0: print('Error') else: print('Cost of oil change: $' + str(cost))
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.