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)))A. ['AB', 'CD']
B. ['ab', 'cd']
C. none of the mentioned
D. error
Answer: Option D

Join The Discussion