New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
Continue or code some stuff
4 Votes
1 AnswerContinue 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
Roblox full version
0 Votes
Help me
1 Votes
What is the bug here??
0 Votes
Help!
1 Votes
What should I learn?
1 Votes
Ai and coding !!?
2 Votes
Html code
1 Votes