Discussions Q&R
[RESOLVED] Breaking Bug
13 Votes
11 RéponsesBRICK BREAKING GAME
3 Votes
7 RéponsesWhile loop breaking
1 Vote
3 Réponsesbreaking tag
0 Vote
2 Réponsesbreaking a while loop
2 Votes
3 RéponsesWhile not breaking
0 Vote
1 Réponsebreaking out of loops
0 Vote
2 RéponsesBreaking and true code
0 Vote
1 RéponseIn the continue Loop -
i = 0
while True:
i = i +1
if i == 2:
print("Skipping 2")
continue
if i == 5:
print("Breaking")
break
print(i)
print("Finished")
It shows the output being
"1
Skipping 2
3
4
Breaking
Finished"
Why are the last three lines not
"Breaking
5
Finished"
Where it shows print(i) after break?
1 Vote
3 RéponsesAujourd'hui en vedette
I am new
1 Votes
Advertising in Sololearn
1 Votes
Marquee
1 Votes
RUST'S FUTURE
1 Votes
Any Advise?
1 Votes