4 ms·
What do you mean by the equivalent itertools expression? It's not clear to me how an expression like this is made more readable by itertools. I'm not sure how i
by code_biologist 4y ago
What do you mean by the equivalent itertools expression? It's not clear to me how an expression like this is made more readable by itertools. I'm not sure how itertools is even relevant.
sum(
a + b
for a in range(10)
if a % 2 == 0
for b in range(10)
)
- cuteboy19 4y agoI don't even understand what this code does but I was referring to itertools.chain for the nested comprehension in the post