+ 1

[SOLVED] Why it doesn't work correctly??

https://code.sololearn.com/ck4NPU0eGho1/?ref=app

3rd Mar 2018, 9:27 PM
Sina
Sina - avatar
3 Answers
+ 7
Indentation error. Here is the fixed code i = 0 while 1!=2: print(i) i = i + 1 if i >= 5: print("finished") break
3rd Mar 2018, 9:30 PM
David Akhihiero
David Akhihiero - avatar
+ 1
"indentation error: unexpected indention" read the error message. line 4 is indented, but shouldn't be indented.
3rd Mar 2018, 9:31 PM
Alex
Alex - avatar
+ 1
Ok thank you
3rd Mar 2018, 9:33 PM
Sina
Sina - avatar