What is difference between break and continue keyword in python ? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
- 1

What is difference between break and continue keyword in python ?

14th Jun 2021, 6:06 PM
Yash Sharma
Yash Sharma - avatar
2 ответов
+ 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]