Discussions Q&R
Please explain.
0 Vote
2 RéponsesWorking on Files
0 Vote
2 RéponsesIn 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 Vote
3 RéponsesAujourd'hui en vedette
I can't see my activity
2 Votes
Hearts refill
2 Votes
Can anyone help me?
1 Votes
Does skipping void Certificate?
2 Votes
Sololearn issue
2 Votes