Vidyalelo
Python · Q30

Exception Handling in Python

Programming · Python · question 30

Q30

What will be the output of the following Python code? g = (i for i in range(5)) type(g)

A.
class <'loop'>
B.
class <'iteration'>
C.
class <'range'>
D.
class <'generator'>
Answer

Answer: Option D

Solution

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