Q&A Discussions
Please explain.
0 Votes
2 AnswersWorking on Files
0 Votes
2 AnswersWhy this code has no output?
0 Votes
1 AnswerIn 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 AnswersHot today
Is this realistic enough?
2 Votes
Need friends
0 Votes
Web Development
0 Votes
Cybersecurity techies
3 Votes
Please complete this code.
0 Votes
What's wrong with code?
0 Votes