Examveda

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 ]

C. [1, 0, 1, 0, 1]

D. Error

Answer: Option B


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python