Discuss / Python / daka

雅乐landa

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

def product(x,*args):

    while len(args)==0:

        return x

    for i in args:

        x=x*i

    return x


  • 1

Reply