The Python Coding Stack

The Python Coding Stack

The Club

Impostors • How Even The Python Docs Get This Wrong* • [Club]

*Spoiler alert: The docs don’t really get it “wrong”

Stephen Gruppetta's avatar
Stephen Gruppetta
Oct 26, 2025
∙ Paid
4
Share

Can you spot all the errors in the following paragraph? There are several:

Two functions that enable you to work effectively with loops in Python are zip() and enumerate(). Along with the range() function, they’re some of the most common tools you’ll see in for loops. And when you master them, you can start exploring the functions in the itertools module.

The correct number of errors in this text is either four or zero. Confused? I don’t blame you. And here’s a bit more confusion for you. It doesn’t matter either way.

Let’s talk about impostors in Python.

It’s likely that one of the first examples you saw when learning about for loops used the range() function as part of the for statement.

But you were fooled. That example, whichever one it was, didn’t do such a thing.

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Stephen Gruppetta
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture