3 ms·
From the Zen of Python: > There should be one-- and preferably only one --obvious way to do it. If you have something written as a simple for loop, there's a
by darkerside 11y ago
From the Zen of Python:
> There should be one-- and preferably only one --obvious way to do it.
If you have something written as a simple for loop, there's a real danger that you're moving in the wrong direction by translating it into a list comprehension.