def prod(L): def f(x,y): return x*y return reduce(f,L) print('3 * 5 * 7 * 9 =', prod([3, 5, 7, 9]))
Sign in to make a reply
可可豆公子