0
whats wrong
trying solve this:You are making a ticketing system. The price of a single ticket is $100. For children under 3 years old, the ticket is free. Your program needs to take the ages of 5 passengers as input and output the total price for their tickets. my code is: total =0 y = 100 x=int(input()) while int(x)>3: x=int(input()) total=y+total if x<3: break continue print(total)
4 Answers
+ 1
olli , look at the corrected code.
https://code.sololearn.com/c7T36CdgS6ap/?ref=app
0
https://code.sololearn.com/c7T36CdgS6ap/?ref=app
- what is that 00
0
olli , I don't understand what do you mean.
0
before i follow the link i didnt have option to see the answer(decision)