You can use generators to simplify nested loops and make it easier to break out of them.
Follow @mathsppblog on Instagram to keep up to date with the project!