Q&A DiscussƵes
Skipping 3
-1 Voto
13 RespostasSkipping lessons
1 Voto
3 RespostasSkipping modules
0 Voto
1 RespostaSkipping a tag in JS
0 Voto
12 RespostasSkipping lines on ruby
0 Voto
1 RespostaCounting by 15s
1 Voto
3 RespostasIn 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
I am new
1 Votes
Advertising in Sololearn
1 Votes
Marquee
1 Votes
RUST'S FUTURE
1 Votes
Any Advise?
1 Votes