3 ms·
I think in general the comprehension is faster because of how method calls and symbol lookups work in python. For the most part it's just a style thing.
by NegativeLatency 10y ago
I think in general the comprehension is faster because of how method calls and symbol lookups work in python. For the most part it's just a style thing.