Sesiones de PyR
[RESOLVED] Breaking Bug
13 Votos
11 RespuestasBRICK BREAKING GAME
3 Votos
7 RespuestasWhile loop breaking
1 Voto
3 Respuestasbreaking tag
0 Votos
2 Respuestasbreaking a while loop
2 Votos
3 RespuestasWhile not breaking
0 Votos
1 Respuestabreaking out of loops
0 Votos
2 RespuestasBreaking and true code
0 Votos
1 RespuestaBraking a while loop??
0 Votos
13 RespuestasIn 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 RespuestasEn tendencia hoy
Need a personal tutor
1 Votes
Fix code
0 Votes
..
1 Votes
Software to write and run codes
1 Votes
Add lua
0 Votes
Beginner_to_SoloLearn
1 Votes