Q. What is the output of the following?
Code:
elements = [0, 1, 2] def incr(x): return x+1 print(list(map(incr, elements)))
β
Correct Answer: (A)
[1, 2, 3].
elements = [0, 1, 2] def incr(x): return x+1 print(list(map(incr, elements)))
You must be Logged in to update hint/solution