def product(*x): if x == (): raise TypeError('Null') sum = 1 for n in x: sum *= n return sum
Sign in to make a reply
hcie_zpc