0

Guys I cant do this question

this is the code I tried to do: total=0 x=0 while x<5: age = int(input()) if age>3: total += 100 x+=1 print (total)

22nd Feb 2022, 2:56 AM
Bluegray
Bluegray - avatar
3 ответов
+ 4
Variable age and if statement are not in the same block. Just indent one of them.
22nd Feb 2022, 3:00 AM
Simba
Simba - avatar
+ 5
Indentation error
26th Feb 2022, 2:11 PM
Vaibhav
Vaibhav - avatar
+ 2
#Indentation matters [edited]
22nd Feb 2022, 3:00 AM
NEZ
NEZ - avatar