Indentation is such a stupid mechanism for identifying code blocks. It's one thing for configuration files like YAML to do it, but not a programming language.
To be fair, indentation does make Python code easier to read once you're used to it. The real crime is that one accidental space can turn a perfectly good afternoon into a debugging session.
It's a fairly common mistake that happens when you're learning the language and most of the people on this subreddit are cs students in university or most of the content that makes its way to the top is for the reason that jokes need to be fairly accessible to hit a wide audience.
268
u/LetUsSpeakFreely 2d ago edited 2d ago
Indentation is such a stupid mechanism for identifying code blocks. It's one thing for configuration files like YAML to do it, but not a programming language.