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))
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

Join The Discussion