Discuss / Python / gaofei

gaofei

Topic source

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

def mul(*l):

    if len(l) == 0:

        raise TypeError('no number')

    s = 1

    for n in l:

        s = s * n

    return s


  • 1

Reply