What is difference between break and continue keyword in python ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 1

What is difference between break and continue keyword in python ?

14th Jun 2021, 6:06 PM
Yash Sharma
Yash Sharma - avatar
2 Antworten
+ 7
break exit from a loop continue exit from an iteration (jump to next iteration)
14th Jun 2021, 6:08 PM
visph
visph - avatar
+ 7
Break means totally exit the loop. Continue means skip one iteration
14th Jun 2021, 6:14 PM
Atul [Inactive]