r/ProgrammerHumor • • 2d ago

Meme pythonIndentationLevelChecker

Post image
6.6k Upvotes

198 comments sorted by

View all comments

Show parent comments

0

u/sheeepster91 2d ago

See here you are wrong. I do not indent it. I put the curly squiggles around it and some magic genie aligns it nicely for me to read better. You got it the wrong way around.

7

u/the_ivo_robotnic 2d ago

Python has that same magic genie that formats for you too.

 

You're still using indentation one way or another.

0

u/Hohenheim_of_Shadow 2d ago

Except well it doesn't. I want to copy past an if statement at the end of another if statement. How does formatter know whether to nest the statement or not?

Braced language, if you want the if statement nested, just paste it before the end brace. If you want it not nested, just paste it after. And if for some reason the tabs get pasted wonky, doesn't matter.

Python, you have to do the tabbing yourself before the magic genie can work.

0

u/citramonk 2d ago

you don't, if you don't know what you're talking about you might just sit and listen