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 Workspace Report Discuss Answer with explanation Answer: Option B Explanation The length of each string is 2. Workspace
Discuss about the question