Discuss / Python / 交作业qaq

交作业qaq

Topic source

胡迪迦

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

def product(*num):

    first = 1

    if num!=():

        for n in num:

            first = first * n

    else:

        raise TypeError

    return first


  • 1

Reply