I commented on this question My nested for loop breaks 3 loops back instead of one.
I pointed out the ambiguities of the question and my reason to vote to close because of syntax errors in the provided example code. My comment was (paraphrased):
How do you know the result of the
break
statement in your example code? There are some errors before reaching thebreak
statements.dic.values()
won't iterate over key,value pairs, you don't use any of your variables, you have twoelse
branches, anexcept
clause needs at least one statement. Please provide a [mre].
I'm particularly interested in whether my comment violates any rules.