Q&A Discussies
The “If” is confusing.
2 Stemmen
5 AntwoordenValid codes to surpass error?
0 Stemmen
1 AntwoordCan't understand the output.
0 Stemmen
2 AntwoordenGoing further with learning
2 Stemmen
2 AntwoordenIn 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 Stem
3 AntwoordenThe innermost
3 Stemmen
4 AntwoordenPopulair vandaag
Where is the bug?
3 Votes
Pointers cpp
2 Votes
Is pro worth the money ?
1 Votes
Drawing images in java
2 Votes