Python Programming - Generators - Discussion
Discussion Forum : Generators - General Questions (Q.No. 75)
75.
How does the
generator.throw(StopIteration, value)
method affect a running generator?
Answer: Option
Explanation:
generator.throw(StopIteration, value)
stops the generator and raises a StopIteration
exception with the specified value.
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