In line 7 indentation error is coming what is the mistake. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In line 7 indentation error is coming what is the mistake.

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

28th Jul 2020, 7:15 AM
riya charles
riya charles - avatar
4 Answers
+ 2
i=1 while 1==1: print(i) i=i+1 if i<=10: print("true") break print("end") Give space like this.
28th Jul 2020, 8:01 AM
Allamprabhu Hiremath
+ 1
Yes break is to far right. It should be on the same line as print.
28th Jul 2020, 7:22 AM
Dragonxiv
Dragonxiv - avatar
+ 1
Thanks u. I'll try it.
28th Jul 2020, 9:06 AM
riya charles
riya charles - avatar
0
Ok thanks 🙂
28th Jul 2020, 7:25 AM
riya charles
riya charles - avatar