Goal
Keyboard: Space play/pause, ← → step, Home/End jump.
Orange-topped cards are small checks: the condition on top, what happens below. Diamonds are checks with more logic inside, hexagons are loops, double-barred boxes call another function (click to open it). continue and break are arrows back to the loop or out of it. Click a dashed loop title to fold the loop into one block. ×n counts the steps so far that touched a block.
Names in the flowchart are readable stand-ins (Swift-style naming). The Code tab keeps your original Python names.
Solution
Things to notice
Problems from Project Euler, licensed under CC BY-NC-SA 4.0.