Q.

)) type(g)

A. class <’loop’>
B. class <‘iteration’>
C. class <’range’>
D. class <’generator’>
Answer» D. class <’generator’>
Explanation: another way of creating a generator is to use parenthesis. hence the output of the code shown above is: class<’generator’>.
1.6k
0
Do you find this helpful?
19

Discussion

No comments yet