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'>
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board