def product(x,*args):
s = x
if not isinstance(x,(int,float)):
raise TypeError
else:
for n in args:
s = s*n
return s
Sign in to make a reply
talyerbooming
def product(x,*args):
s = x
if not isinstance(x,(int,float)):
raise TypeError
else:
for n in args:
s = s*n
return s