Examveda

What will be the output of the following Python code?
l=[1, -2, -3, 4, 5]
def f1(x):
    return x<-1
m1=map(f1, l)
print(list(m1))

A. [False, False, False, False, False]

B. [False, True, True, False, False]

C. [True, False, False, True, True]

D. [True, True, True, True, True]

Answer: Option B


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python