0
Pls help me in 24.1 practice coach. Python
9 Answers
+ 3
Copy code below.
I have corrected indentations
total = 0
x=0
while x<5:
age=int(input())
if age>3:
total += 100
x+=1
print(total)
+ 2
If there's no reason to indent, then dont. If you want something to happen within a loop, then indent under it.
+ 1
That's I wrote
0
what is it? And can you post what you've tried?
0
total = 0
x=0
while x<5:
age=int(input())
if age>3:
total += 100
x+=1
print
0
But always error
0
from what you posted it has to do with indentation. Is it an indentation error?
0
Yes always indention error
0
And error while reading the line