Discuss / Python / a

def product(x,*y):

    if not len(y):

        return x

    else:

     for z in y:

        x=x*z

     return x


  • 1

Reply