from functools import reducedef prod(x, y): return x * yprint(reduce(prod, [3, 5, 7, 9]))
Standard input is empty
945
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!