You can use generators to simplify nested loops and make it easier to break out of them.
There are two types of people in the world. Those who can extrapolate when information is missing.