Vidyalelo
Python · Q41

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 41

Q41

What will be the output of the following Python code? l1=[2,4,6] l2=[-2,-4,-6] for i in zip(l1, l2): print(i)

A.
2, -2
4, -4
6, -6
B.
[(2, -2), (4, -4), (6, -6)]
C.
(2, -2)
(4, -4)
(6, -6)
Answer
D.
[-4, -16, -36]

Answer: Option C

Solution

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