Animating Squares Around the Edge of a Window in Python

Previously, I wrote about how I like to get students to try to create Processing code to emulate a simple animation of a square moving clockwise around the edges of a screen. In this post, I'll do the same thing, but using Python Turtle graphics, as well as the PyGame Zero module.

Traffic Light Remix

Creating a traffic light simulator in Processing to demonstrate the idea of a state machine.