+ 1

Python loop function

**ticket practice**Help So this is the code but i have a realy hard time to comprehend this x variable function total = 0 x=0 while x<5: age=int(input()) x=x+1 if age<3 : continue total=total+100 print(total)

23rd May 2022, 7:15 PM
mahdi azizi
mahdi azizi - avatar
1 Answer
+ 4
Your question ? edit: is it about what x doing ? Acting like a counter for loop to iterate 5 times.
23rd May 2022, 7:25 PM
Jayakrishna 🇼🇳