+ 1

what is wrong here

with any program there are many ways to write a solution. I have looked at one from Cory M and it seems to imply that this works. It does not show indents and also there is a capital P in passenger so it will not work. I did a few modifications with indents and it worked. I believe that my solution is also correct. Can anyone tell me if this is the case or where my solution is wrong. Thanks total = 0 passengers=5 while passengers>0: age = input() if int(age)>=3: total=total+100 passengers=passengers-1 print("

quot;+str(total)) Peter Peter

16th Jan 2022, 3:39 AM
Peter Grey
3 Answers
+ 3
Did you try what I told you before? All you need to remove the `