Vidyalelo
Python · Q171

Functions in Python

Programming · Python · question 171

Q171

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

A.
['AB', 'CD']
Answer
B.
['ab', 'cd']
C.
none of the mentioned
D.
error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board