+ 1

Continue and break

-What’s the different between continue and break? -When we use them ?

16th Dec 2018, 11:50 PM
Osama Alrowhani
Osama Alrowhani  - avatar
2 odpowiedzi
+ 5
Also go through the Python course on SoloLearn: https://www.sololearn.com/learn/Python/2281/
17th Dec 2018, 12:06 AM
Ikechukwu Okonkwo
Ikechukwu Okonkwo - avatar
+ 6
Osama Alrowhani The BREAK statement terminates the loop containing it. The CONTINUE statement is used to skip the rest of the code inside a loop for the current iteration only. Loop does not terminate but continues on with the next iteration.
17th Dec 2018, 12:04 AM
Ikechukwu Okonkwo
Ikechukwu Okonkwo - avatar