MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/1e00j2o/yotsugi_python/lcooe7m/
r/ProgrammerAnimemes • u/grg994 • Jul 10 '24
14 comments sorted by
View all comments
Show parent comment
2
Can't you have any amount of white spaces in python as long as it's consistent?
4 u/MinosAristos Jul 11 '24 Yep, although any less than 4 violates PEP8, which many Python devs take pretty seriously.The idea is that it encourages you to avoid nesting too much 1 u/Shriukan33 Jul 11 '24 Correct, indent is for logical blocks, so as long is in the same level of indent, it's the same block, just like brackets.I only use 4 spaces as a convention
4
Yep, although any less than 4 violates PEP8, which many Python devs take pretty seriously.
The idea is that it encourages you to avoid nesting too much
1
Correct, indent is for logical blocks, so as long is in the same level of indent, it's the same block, just like brackets.
I only use 4 spaces as a convention
View all comments
Show parent comment
2
u/Zekiz4ever Jul 11 '24
Can't you have any amount of white spaces in python as long as it's consistent?