Discuss / Python / 交作业—第二题

交作业—第二题

Topic source

oy-冲弱

#1 Created at ... [Delete] [Delete and Lock User]
def prod(L):
    def mul(x,y):
        return x*y
    return reduce(mul,L)
num = prod([3,5,7,9])
print(num)

  • 1

Reply