Examveda

What will be the output of the following Python code?
import functools
l=[1, 2, 3, 4, 5]
m=functools.reduce(lambda x, y:x if x>y else y, l)
print(m)

A. Error

B. Address of m

C. 1

D. 5

Answer: Option D


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python