Python Programming - Generators - Discussion
Discussion Forum : Generators - General Questions (Q.No. 20)
20.
How does the
itertools.cycle()
function behave when used with a generator?
Answer: Option
Explanation:
itertools.cycle()
creates an infinite sequence of repeated values. When used with a generator, it continuously cycles through the values produced by the generator.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers