breaking out of outer loops
Fillmore
fillmore_remove at hotmail.com
Mon Mar 7 18:21:16 EST 2016
On 3/7/2016 6:17 PM, Ian Kelly wrote:
> 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,
wow...this is a bit of a WTF moment to me :(
> apart from structuring your
> code such that return does what you want.
>
Can you elaborate? apologies, but I'm new to python and trying to find
my way out of perl....
More information about the Python-list
mailing list