The Error Displayed In The Following Python Code Isp Pre #1174
The error displayed in the following Python code is?</p> <pre><code class="language-python">import itertools l1=(1, 2, 3) l2=[4, 5, 6] l=itertools.chain(l1, l2) print(next(l1))</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Exception Handling - Python Exception Handling - Quiz No.3.
The error displayed in the following Python code is?
import itertools l1=(1, 2, 3) l2=[4, 5, 6] l=itertools.chain(l1, l2) print(next(l1))
‘list’ object is not iterator
‘tuple’ object is not iterator
‘list’ object is iterator
‘tuple’ object is iterator