What will be the output of the following Python code? [code]x = ['ab', 'cd'] print(list(map(len, x)))[/code]

What will be the output of the following Python code?
Code:
x = ['ab', 'cd']
print(list(map(len, x)))
A. [‘ab’, ‘cd’]
B. [2, 2]
C. [‘2’, ‘2’]
D. none of the mentioned
 

Tìm kiếm

Back
Top