LearnPy Hub
← Recursion & Lambda problems
Hard

Product with reduce()

Read integers and print their product using functools.reduce with a lambda.

Input

One line of integers.

Output

The product.

Sample 1

Input
1 2 3 4
Output
24

Sample 2

Input
5
Output
5
solution.py
Output appears here
Product with reduce() · Python practice problem · LearnPy Hub