adplus-dvertising
frame-decoration

Question

What is the output of the line of code shown below?
list(map((lambda x:x**2), filter((lambda x:x%2==0), range(10))))

a.

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

b.

[0, 4, 16, 36, 64]

c.

Error

d.

No output

Posted under Python

Answer: (b).[0, 4, 16, 36, 64]

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the line of code shown below?