Python Programming - Generators - Discussion
Discussion Forum : Generators - General Questions (Q.No. 93)
93.
What happens if the
generator.close()
method is called on a generator?
Answer: Option
Explanation:
generator.close()
has no effect on the running generator. It is typically used to signal that the generator can be closed.
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