When you write a simple for x in something: in Python, there’s a lot happening behind the scenes. That “something” could be a list, a string, a dictionary, or even a file stream. But what exactly makes an object loop-able?

The answer: iterables.

In this article (Part 1 of a 3-part series), we’ll explore iterables with an easy-to-grasp metaphor...