breaking out of outer loops

Ian Kelly ian.g.kelly at gmail.com
Mon Mar 7 18:17:48 EST 2016


On Mon, Mar 7, 2016 at 4:09 PM, Fillmore <fillmore_remove at hotmail.com> wrote:
>
> I must be missing something simple because I can't find a way to break out
> of a nested loop in Python.
>
> Is there a way to label loops?

No, you can't break out of nested loops, apart from structuring your
code such that return does what you want.



More information about the Python-list mailing list