Given the following code (that doesn\'t work):
while True: #snip: print out current state while True: ok = get_input(\"Is this ok? (y/n)\")
Here's an implementation that seems to work:
break_ = False for i in range(10): if break_: break for j in range(10): if j == 3: break_ = True break else: print(i, j)
The only draw back is that you have to define break_ before the loops.
break_