+ 1
How do I code a python3 summation?
3 Answers
+ 3
Norm
the first part is good only that you should write it like this:
print(sum([1,2,3,4]))
If you want to use a lambda I think this might work:
from functools import reduce
print(int(reduce(lambda x,y: x+y, [1,2,3,4])))
But these are just a few ways of doing it đđ
+ 2
Try something and we'll see from there.
0
thx so much for the help!