Dyskusje Q&A
The “If” is confusing.
2 głosów
5 odpowiedziValid codes to surpass error?
0 głosów
1 OdpowiedźCan't understand the output.
0 głosów
2 odpowiedziGoing further with learning
2 głosów
2 odpowiedziIn 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 Głos
3 odpowiedziThe innermost
3 głosów
4 odpowiedziPopularne dzisiaj
Activities on sololearn
4 Votes
Html issue
2 Votes
Can you help me ?
1 Votes
Code coach
0 Votes
How I can use div
1 Votes
TIPS From Veterans
2 Votes
App development 🔥☝️
1 Votes
Playground input
1 Votes
Computer architecture
1 Votes