What will the following Python code produce as a result? ['ab','cd'] x = ['ab','cd'] x = ['ab','cd list(map(len, x)) print(len, x)
A. 'ab' and 'cd' are both abbreviations for 'ab' and 'cd' respectively.
B. 2 and 2
C. ['2','2']
D. Neither of the preceding
Answer:B
What will the following Python code produce as a result? ['ab','cd'] x = ['ab','cd'] x = ['ab','cd list(map(len, x)) print(len, x)
A. 'ab' and 'cd' are both abbreviations for 'ab' and 'cd' respectively. B. 2 and 2 C. ['2','2'] D. Neither of the preceding
Explanation: Each string is two metres long.