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
Vote Code
1 Votes
Input errors (python)
1 Votes
Without degree job
0 Votes
Script file names
0 Votes