Please solved this= total=0 x=0 while x<5: age = int(input()) if age>3: total +=100 x+=1 print(total) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please solved this= total=0 x=0 while x<5: age = int(input()) if age>3: total +=100 x+=1 print(total)

Solved the code

26th Jul 2022, 10:53 AM
Manish Kumar
Manish Kumar - avatar
2 Answers
+ 4
Manish Kumar , the indentation of your code is not correct. please try to read and understand how to to do indentation properly. your profile does not show anything about your learning path, so i recommend you to start with python for beginners.
26th Jul 2022, 11:06 AM
Lothar
Lothar - avatar
+ 1
Please do not put the code in the title section – it gets CUT OFF and the INDENTATION gets messed up. What issue did you encounter and what is the code supposed to do?
26th Jul 2022, 11:05 AM
Lisa
Lisa - avatar