0

In beginners python the ticket price problem in break and continue is not working reason?

total=0 i=0 while i<5: age=int(input()) if age>3: total=+100 i=i+1 print(total)

9th Feb 2022, 2:38 AM
P Amrithnath
2 Réponses
0
To Avoid Confusion, Write a readable code like this total = total+100.
9th Feb 2022, 5:11 AM
Dilji
Dilji - avatar