shlogg · Early preview
Kaylee Lubick @kjlubick

Understanding Loops In Python: A Visual Guide

Loops are tricky for beginners! Concepts Illuminated's animations break down how Python code executes loops & more in 8 min on YouTube!

Loops are one of the trickiest concepts for beginning programmers.
To help, the team at Concepts Illuminated started a series of animations that walk through how Python code executes for loops (and conditionals, variables, and functions).
The first animation features code that detects palindromes, a sample of which is available below.

The full animation, along with some commentary explaining the various steps, is available for free on YouTube [8 minute watch].
The animation was created using Manim, which allowed us to write Python code to explain Python code. I find that amusing (and also ver...