?
What will be the output of the following Python code?
What will be the output of the following Python code?
import functools
l=[1,2,3,4]
print(functools.reduce(lambda x,y:x*y,l))
import functools
l=[1,2,3,4]
print(functools.reduce(lambda x,y:x*y,l))
Join the Discussion
Login to post a comment or share your explanation.
Login