πŸ“Š Python
Q. What is the output of the following?
Code:
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) [β€žAB?, β€žCD?].

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
187
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
92%
Success Rate