4 ms·
My simplicity toolkit: Programming (part 2)
- compressedgas 3y ago> reduce(lambda acc, value: acc * (value ** 2), numbers, 0) It is also wrong as that expression is always 0. Going by the function name, the * should be a +. If you wanted the product of squares, instead replace the 0 with 1.
- JensRantil 3y agoNice catch! Fixed!