Examveda

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: Option D


This Question Belongs to Python Program >> Exception Handling In Python

Join The Discussion

Related Questions on Exception Handling in Python