from functools import reduce
def prod(L):
def fn(x,y):
return x*y
return reduce(fn,L)
Sign in to make a reply
VH立华
from functools import reduce
def prod(L):
def fn(x,y):
return x*y
return reduce(fn,L)