fork download
  1. from functools import reduce
  2. def prod(x, y):
  3. return x * y
  4. print(reduce(prod, [3, 5, 7, 9]))
Success #stdin #stdout 0.02s 9132KB
stdin
Standard input is empty
stdout
945