4 ms·
Python won't run without specified indentation, and leaves no freedom for brace positioning. On the C side, we've accumulated a variety of formatting styles [1]
by kardos 11y ago
Python won't run without specified indentation, and leaves no freedom for brace positioning. On the C side, we've accumulated a variety of formatting styles [1].
[1] https://en.wikipedia.org/wiki/Indent_style#Styles https://en.wikipedia.org/wiki/Indent_style#Styles
- yarrel 11y agoYou can automatically format C. Python, not so much.
- kqr 11y agoBoth of you make the mistake of confusing formatting with indentation. Indentation is just a tiny part of formatting. There are tools to automatically format Python (but they do obviously require that the indentation is somewhat correct before you run them) and they work fairly well. :)