- 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]