Python Programming - Generators - Discussion
Discussion Forum : Generators - General Questions (Q.No. 34)
34.
How does the
generator.send(value) method differ from next(generator) when used with a generator?
Answer: Option
Explanation:
next(generator) can be used without providing a value, while generator.send(value) requires a value to be sent into 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