0

What will be the output of the following Python code

x = ['ab', 'cd'] print(len(list(map(list, x))))))

6th May 2020, 3:37 AM
PATIL VIVEK VINOD
PATIL VIVEK VINOD - avatar
1 Answer
+ 3
2 because you are making a list inside another list using map and list I.e like multidimensional array . Which result in [['a', 'b'], ['c', 'd']] After that you are finding length ie 2
6th May 2020, 3:51 AM
Ayush Kumar
Ayush Kumar - avatar