Python Programming - Generators - Discussion
Discussion Forum : Generators - General Questions (Q.No. 36)
36.
How does the
generator.throw(StopIteration)
method affect a running generator?
Answer: Option
Explanation:
generator.throw(StopIteration)
forcibly terminates the running generator by raising a StopIteration
exception.
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