1 min readSep 27, 2019
`sum(y**2 for y in x)` with generator expression would provide the same result while being a bit more efficient as it does not create an unnecessary intermediate list.
`sum(y**2 for y in x)` with generator expression would provide the same result while being a bit more efficient as it does not create an unnecessary intermediate list.
Engineer + Researcher curious about software and computing.