What will be the output of the following Python code? def to_upper(k): return k.upper() [code]x = ['ab', 'cd'] print(list(map(upper,

Phương Linh

New member
What will be the output of the following Python code?
def to_upper(k):
return k.upper()
Code:
x = ['ab', 'cd']
print(list(map(upper, x)))
A. [‘AB’, ‘CD’]
B. [‘ab’, ‘cd’]
C. none of the mentioned
D. error
 

Tìm kiếm

Back
Top