What Will Be The Output Of The Following Python Codep Pre #429
What will be the output of the following Python code?</p> <pre><code class="language-python">l1=[10, 20, 30] l2=[-10, -20, -30] l3=[x+y for x, y in zip(l1, l2)] print(l3)</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=[10, 20, 30] l2=[-10, -20, -30] l3=[x+y for x, y in zip(l1, l2)] print(l3)
Error
0
[-20, -60, -80]
[0, 0, 0]