1.

What is the output of the following? x = ['ab', 'cd'] print(list(map(len, x)))

A. [‘ab’, ‘cd’].
B. [2, 2].
C. [‘2’, ‘2’].
D. none of the mentioned
Answer» C. [‘2’, ‘2’].


Discussion

No Comment Found