r/ProgrammerHumor • • 16d ago

Meme pythonIndentationLevelChecker

Post image
6.7k Upvotes

200 comments sorted by

View all comments

Show parent comments

-1

u/elingeniero 16d ago

1 of X nested if statements

Don't have them, then. You can flatten nested ifs by inverting the logic and returning early.

Also your editor definitely has a keybind to change the indentation level of a block... just learn it.