Phương Quyên
New member
What will be the output of the following Python code?
A. class <’loop’>
B. class <‘iteration’>
C. class <’range’>
D. class <’generator’>
Code:
g = (i for i in range(5))
type(g)
B. class <‘iteration’>
C. class <’range’>
D. class <’generator’>