from functools import reduce
def prod(L):
def fn(x,y):
return x*y
return reduce(fn,L)
Sign in to make a reply
夢醒已白髮
from functools import reduce
def prod(L):
def fn(x,y):
return x*y
return reduce(fn,L)