Vidyalelo
Python · Q49

Functions in Python

Programming · Python · question 49

Q49

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]
Answer
C.
[True, False, False, True, True]
D.
[True, True, True, True, True]

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board