def mult(a,b): return a*b def prod(L): return reduce(mult,L)