0
Help to fix this bug ?
3 Answers
0
For the shorter version of Jayakrishnađźđł 's answer, which I think you are trying to do,
x += 1 //Missing the equal sign.
Also, be careful with your indentation. Indentation is a part of syntax in Python and won't work if you don't do so properly.
+ 2
x = x + 1
edit: also may you need >= 3 instead of >3 !
0
total = 0
x=0
age =int(input())
while x<5:
if age>3:
total +=100
x=x+1
print(total)