adplus-dvertising
frame-decoration

Question

What is the output of the line of code shown below?
list(map((lambda x:x^2), range(10)))

a.

[0, 1, 4, 9, 16, 25, 36, 49, 64, 81]

b.

Error

c.

[2, 3, 0, 1, 6, 7, 4, 5, 10, 11]

d.

No output

Posted under Python

Answer: (c).[2, 3, 0, 1, 6, 7, 4, 5, 10, 11]

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?