Sesiones de PyR
The “If” is confusing.
2 Votos
5 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 RespuestasThe innermost
3 Votos
4 RespuestasEn tendencia hoy
Moving image
4 Votes
Check it out
1 Votes
Do you agree with me ???
0 Votes
Want to confirm
0 Votes
Help make cool game
0 Votes
I need help again 😁
0 Votes
Python
0 Votes
Output
0 Votes