Examveda

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

A. ['ab', 'cd']

B. [2, 2]

C. ['2', '2']

D. none of the mentioned

Answer: Option B


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python