You can use generators to simplify nested loops and make it easier to break out of them.
Why is 6 afraid of 7? Because 7 8 9.