def product(*arg):
if len(arg) == 0:
raise TypeError('No arguments given!')
product = 1
for x in arg:
product *= x
return product
Sign in to make a reply
Tim_Ho_
def product(*arg):
if len(arg) == 0:
raise TypeError('No arguments given!')
product = 1
for x in arg:
product *= x
return product