McqMate
Q. |
=[x+y for x, y in zip(l1, l2)] l3 |
A. | error |
B. | 0 |
C. | [-20, -60, -80] |
D. | [0, 0, 0] |
Answer» D. [0, 0, 0] | |
Explanation: the code shown above returns x+y, for x belonging to the list l1 and y belonging to the list l2. that is, l3=[10-10, 20-20, 30-20], which is, [0, 0, 0]. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet