Examveda

What will be the output of the following Python code?
def to_upper(k):
    return k.upper()
x = ['ab', 'cd']
print(list(map(upper, x)))

A. ['AB', 'CD']

B. ['ab', 'cd']

C. none of the mentioned

D. error

Answer: Option D


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python