0

Pls help me in 24.1 practice coach. Python

6th Mar 2022, 2:57 AM
Raj Hazarika 2.0
9 Respuestas
+ 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)
6th Mar 2022, 5:03 AM
Shadoff
Shadoff - avatar
+ 2
If there's no reason to indent, then dont. If you want something to happen within a loop, then indent under it.
6th Mar 2022, 3:05 AM
Slick
Slick - avatar
+ 1
That's I wrote
6th Mar 2022, 3:00 AM
Raj Hazarika 2.0
0
what is it? And can you post what you've tried?
6th Mar 2022, 2:58 AM
Slick
Slick - avatar
0
total = 0 x=0 while x<5: age=int(input()) if age>3: total += 100 x+=1 print
6th Mar 2022, 2:59 AM
Raj Hazarika 2.0
0
But always error
6th Mar 2022, 3:00 AM
Raj Hazarika 2.0
0
from what you posted it has to do with indentation. Is it an indentation error?
6th Mar 2022, 3:01 AM
Slick
Slick - avatar
0
Yes always indention error
6th Mar 2022, 3:03 AM
Raj Hazarika 2.0
0
And error while reading the line
6th Mar 2022, 3:04 AM
Raj Hazarika 2.0