Discuss / Python / 作业打卡(2)

作业打卡(2)

Topic source

石年80059

#1 Created at ... [Delete] [Delete and Lock User]

怎么上传代码才不乱?

def prod(L):    def mul(x,y):        return x*y    return reduce(mul,L)a = [3,5,7,9]print(prod(a))

  • 1

Reply