Let's Get Loopy
Requirements and Approach to
Requirements
Approach
Or even better …
use the Thonny debugger