Nguyễn Tuấn Dương
New member
What will be the output of the following Python code?
A. [‘ab’, ‘cd’]
B. [2, 2]
C. [‘2’, ‘2’]
D. none of the mentioned
Code:
x = ['ab', 'cd']
print(list(map(len, x)))
B. [2, 2]
C. [‘2’, ‘2’]
D. none of the mentioned