πŸ“Š Python
Q. What is the output of the following?
Code:
elements = [0, 1, 2]
def incr(x):
return x+1
print(list(map(elements, incr)))
  • (A) [1, 2, 3].
  • (B) [0, 1, 2].
  • (C) error
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
219
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
98%
Success Rate