Q&A Discussões
In 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
Using Python on VScode
2 Votes
Python Developer
0 Votes
Wayss
0 Votes
fully dynamic arrays
1 Votes
Guys who tell me
0 Votes
Hearts
0 Votes
Project subjection
0 Votes