

McqMate
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’>. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet