def product(x, *args):
if len(args) > 0:
for i in args:
x *= i
return x
else:
def product(x, *args): for i in args: x *= i return x
Sign in to make a reply
tortoise__knight
def product(x, *args):
if len(args) > 0:
for i in args:
x *= i
return x
else:
return x