Loop better: A deeper look at iteration in Python

Python’s for loops don’t work the way for loops do in other languages. In this article we’re going to dive into Python’s for loops to take a look at how they work under the hood and why they work the way they do.

Looping gotchas

We’re going to start off our journey by taking a look at some “gotchas.” After we’ve learned how looping works in Python, we’ll take another look at these gotchas and explain what’s going on.