Python Programming - Generators - Discussion
Discussion Forum : Generators - General Questions (Q.No. 45)
45.
How does the
generator.send(value)
method differ from yield value
when used with a generator?
Answer: Option
Explanation:
generator.send(value)
is used to send a value into the generator, while yield value
is used to yield a value from 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