>>> def product(ints): ... result = 1 ... for int in ints: ... result *= int ... return result
>>> product([]) 1