- 1

Please could someone tell me what I have done wrong.

https://code.sololearn.com/cR0bxA2OR5jY/?ref=app

18th Mar 2021, 8:56 AM
Daniel Atherton
3 Antworten
+ 2
you continue the loop if age <= 3, without incrementing passengers, so your loop will expect more input as you think if input is <=3... https://code.sololearn.com/cgrQhJDxku16/?ref=app
18th Mar 2021, 9:03 AM
visph
visph - avatar
+ 1
thank you visph that solved it 👏
18th Mar 2021, 9:10 AM
Daniel Atherton
0
Can you attach the task requirements to this code so we may cross reference your question to the expected output
18th Mar 2021, 9:04 AM
Rik Wittkopp
Rik Wittkopp - avatar