What will be the output of the following Python code?
def to_upper(k):
k.upper()
x = ['ab', 'cd']
print(list(map(to_upper, x)))
def to_upper(k):
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: Option C

Join The Discussion