Q.

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

A. [„AB‟, „CD‟].
B. [„ab‟, „cd‟].
C. none of the mentioned
D. error
Answer» A. [„AB‟, „CD‟].
1.4k
0
Do you find this helpful?
9

View all MCQs in

Python Programming

Discussion

No comments yet