This is an example of applying coding to the teaching of mathematics - in this example: dividing a unit rectangle into any number of equal parts.
https://www.youtube.com/watch?v=16tthDrtrYU Thank you Chuck Trautwein for sharing the tutorial