3 ms·
Set comprehensions are normal in mathematics and, barring very long complex ones, I find them the easiest to parse because they are so natural. They're just a
by xen0 2y ago
Set comprehensions are normal in mathematics and, barring very long complex ones, I find them the easiest to parse because they are so natural.
They're just a tad more verbose in Python than mathematics because it uses words like 'for' and 'in' instead of symbols.