Example-
list is [1,2,3,4]
then product is 24
program-
#import the functools module
import functools
#take input of the list
print("Enter number in list")
n=map(int,input().split())
x=functools.reduce(lambda x,y:x*y,n)
print("product of list is :",x)
Enter number in list
1 2 3 4
product of list is : 24