?
What will be the output of the following Python code?
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)))
def to_upper(k):
return k.upper()
x = ['ab', 'cd']
print(list(map(upper, x)))
Join the Discussion
Login to post a comment or share your explanation.
Login