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].
Q. =[x+y for x, y in zip(l1, l2)] l3
β
Correct Answer: (D)
[0, 0, 0]
Explanation by: Mr. Dubey
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].
Discussion
Question Analytics
854
Total Visits
2 y ago
Published
Mr. Dubey
Publisher
86%
Success Rate