def prod(L):
def qj (x,y):
return x*y
return reduce(qj,L)
return reduce(lambda x, y: x*y, L)
Sign in to make a reply
忧雅Beautiful
def prod(L):
def qj (x,y):
return x*y
return reduce(qj,L)