You can use prod() function of Numpy to compute the product of all elements of a list.
Here is an example:
>>> import numpy>>> import numpy as np>>> a=[1,2,3,4,5]>>> np.prod(a)120
Basic approach
>>> for v in a:... t=t*v...>>> t120