def product(num): '''Calculate the product of multiple numbers''' if num is None or len(num)<=0 : raise TypeError("args not null") s = 1 for i in num: s = s i return s
Sign in to make a reply
whytheluckystiff
def product(num): '''Calculate the product of multiple numbers''' if num is None or len(num)<=0 : raise TypeError("args not null") s = 1 for i in num: s = s i return s