Question #596

What is the output of the code snippet below?
l = [-2, 4]
m = map(lambda x: x*2, l)
print(m)

This will print the address of m . Had we used the statement: print(list(m)) , the output would have been [-4, 16] . (geeksforgeeks.org/python-lambda-anonymous-functions-filte...)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵