Describe
Answer
from functools import reducedef mul(x,y):return x*ydef prod(L):return reduce(mul,L)
print(prod([3,5,7,9]))
Output
945Process finished with exit code 0
from functools import reducedef mul(x,y):return x*ydef prod(L):return reduce(mul,L)
print(prod([3,5,7,9]))
945Process finished with exit code 0