What Will Be The Output Of The Following Python Codep Pre #1176
What will be the output of the following Python code?</p> <pre><code class="language-python">g = (i for i in range(5)) type(g)</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.
What will be the output of the following Python code?
g = (i for i in range(5)) type(g)
class <’loop’>
class <‘iteration’>
class <’range’>
class <’generator’>