Q&A Discussões
[RESOLVED] Breaking Bug
13 Votos
11 RespostasBRICK BREAKING GAME
3 Votos
7 RespostasWhile loop breaking
1 Voto
3 Respostasbreaking tag
0 Voto
2 Respostasbreaking a while loop
2 Votos
3 RespostasWhile not breaking
0 Voto
1 Respostabreaking out of loops
0 Voto
2 RespostasBreaking and true code
0 Voto
1 RespostaIn 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 Voto
3 RespostasQuente hoje
AI Takeover
2 Votes
Using Python on VScode
1 Votes
Python Developer
0 Votes
Average of Two Numbers
0 Votes
Hearts
0 Votes