New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
Continue statement
0 Votes
4 AnswersIn 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 Answerswhile loop using continue
0 Votes
1 AnswerHot today
Can anyone guide me
0 Votes
Internal vs external JS
2 Votes
Python Core
0 Votes
[SOLVED] Ballpark Challenge
1 Votes