3 ms·
Python's colon is not for the sake of the compiler (you could theoretically parse a version of Python without them), there were studies that showed that it's ea
by nonsince 10y ago
Python's colon is not for the sake of the compiler (you could theoretically parse a version of Python without them), there were studies that showed that it's easier for humans to read with it than without. A lot of Python's design decisions were made because it's easier for humans to read and write (keyword operators, whitespace syntax, explicit return).