Python3 summation | Sololearn: Learn to code for FREE!


Python3 summation

I want to use the gamma function on this summation and thiS what I have so far: from functools import reduce import numpy print(int(reduce(lambda x,y: x+y, [1,2,3,4]))) What should I do from now?

3/9/2020 10:52:10 PM


3 Answers

New Answer


I'm sorry if I didn't understand, but I believe you would do this: from functools import reduce from math import gamma print(gamma(int(reduce(lambda x, y: x + y, [1, 2, 3, 4])))) The result would be 362, 880.


thank you!


imma follow u