4 ms·
You can add empty lines before and after blocks. The only thing that matters is the indentation. If you see code without empty lines separating different steps,
by throwaway749201 4y ago
You can add empty lines before and after blocks. The only thing that matters is the indentation. If you see code without empty lines separating different steps, that's pretty badly written Python.
- smt88 4y ago> If you see code without empty lines separating different steps, that's pretty badly written Python. You're describing literally all of the Python I've ever seen. Look at Flask, for example[1]. Furthermore, without brackets, adding newlines in a code block forces me to then add more newlines between blocks (which Flask also does!) I would rather just have easy-to-scan, clear characters that demarcate a code block. 1. https://github.com/pallets/flask/blob/main/src/flask/templating.py https://github.com/pallets/flask/blob/main/src/flask/templat...