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

Join The Discussion