4 ms·
Huh? Lack of braces is one of the things I like about Python. Additionally, on many non-English keyboards braces are somewhat hard to write (e.g., on a Danish M
by workhere-io 13y ago
Huh? Lack of braces is one of the things I like about Python. Additionally, on many non-English keyboards braces are somewhat hard to write (e.g., on a Danish Mac keyboard it's a three-letter combo: Alt + shift + 8). Not having to write braces is nice.
One of the examples on the page says "indentation doesn't matter". But the thing is, it does matter - even if there are braces. Correct indentation means that your code is more readable. Python (the normal version without braces) enforces correct indentation, which is brilliant.