def mul(*l):
if len(l) == 0:
raise TypeError('no number')
s = 1
for n in l:
s = s * n
return s
Sign in to make a reply
。
def mul(*l):
if len(l) == 0:
raise TypeError('no number')
s = 1
for n in l:
s = s * n
return s