Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcjęDyskusje Q&A
Skipping 3
-1 Głos
13 odpowiedziSkipping lessons
1 Głos
3 odpowiedziSkipping modules
0 głosów
1 OdpowiedźSkipping a tag in JS
0 głosów
12 odpowiedziSkipping lines on ruby
0 głosów
1 OdpowiedźCounting by 15s
1 Głos
3 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 odpowiedziPopularne dzisiaj
App doesnt work
3 Votes
Where can I write code for free
1 Votes
Project on HTML and CSS
2 Votes
Code Coach
2 Votes
Tutorial loop
1 Votes
Control Flow<<Time’s Up
0 Votes
Recent update issues?
1 Votes