A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 22
  • Filed under category Python
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.