How can i use the break statement to get out of nested loops (not a single loop) in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i use the break statement to get out of nested loops (not a single loop) in python?

9th Oct 2019, 5:36 PM
Hari Krishna
2 Answers
+ 1
br = False loop: loop: if condition: br = True break if br: break
9th Oct 2019, 6:20 PM
Seb TheS
Seb TheS - avatar
0
Like why someone would use it or how to code it?
9th Oct 2019, 5:52 PM
Odyel
Odyel - avatar