Examveda

What will be the output of the following Python 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

Answer: Option C


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python