Back to quizzes
Generators & Iterators Quiz
Java / Loops | Medium | 15 questions
Question 1 of 15
4 free questions left
What is a generator in Python?
A
special type of iterator that generates values on the fly
B
A function that takes input and returns output
C
A data structure that stores a collection of items
D
A type of loop used for iteration