adplus-dvertising
frame-decoration

Question

The output of the two codes shown below is the same. State whether true or false.
[x**2 for x in range(10)]
list(map((lambda x:x**2), range(10)))

a.

True

b.

False

c.

May be

d.

Can't say

Posted under Python

Answer: (a).True

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The output of the two codes shown below is the same. State whether true or false.