3 ms·
I'd replace the outer list comprehension with filter() but otherwise the code doesn't look "obfuscated" or even ugly. The alternatives would be map and lambda o
by VMG 16y ago
I'd replace the outer list comprehension with filter() but otherwise the code doesn't look "obfuscated" or even ugly. The alternatives would be map and lambda or expand into a for-block, both of which are less aesthetic from my point of view.