Vidyalelo
Python · Q34

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 34

Q34

What will be the output of the following Python code? l1=[10, 20, 30] l2=[-10, -20, -30] l3=[x+y for x, y in zip(l1, l2)] print(l3)

A.
Error
B.
0
C.
[-20, -60, -80]
D.
[0, 0, 0]
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board