Vidyalelo
Python · Q95

Functions in Python

Programming · Python · question 95

Q95

What will be the output of the following Python code? l=[1, 2, 3, 4, 5] m=map(lambda x:2**x, l) print(list(m))

A.
[1, 4, 9, 16, 25 ]
B.
[2, 4, 8, 16, 32 ]
Answer
C.
[1, 0, 1, 0, 1]
D.
Error

Answer: Option B

Solution

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