What Will Be The Output Of The Following Python Codep Pre #428
What will be the output of the following Python code?</p> <pre><code class="language-python">l1=[2,4,6] l2=[-2,-4,-6] for i in zip(l1, l2): print(i)</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 List Comprehension - Python List Comprehension - Quiz No.2.
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)
2, -2 4, -4 6, -6
[(2, -2), (4, -4), (6, -6)]
(2, -2) (4, -4) (6, -6)
[-4, -16, -36]