Обсуждения
What is "break" used for in a loop?
3 голосов
4 ответовWi-Fi stands for what?
1 голос
1 ответJavascript restart prog
6 голосов
2 ответовHow do people hack?
-3 голосов
5 ответовKnow few tricks on hacking!!!!?
5 голосов
2 ответовIn 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 голос
3 ответовHow this code can be re-writed?
0 голосов
1 ответBad practices?
0 голосов
1 ответАктуальное сегодня
Pointers cpp
2 Votes
Is pro worth the money ?
1 Votes
Drawing images in java
2 Votes
Coding for Cybersecurity
0 Votes