Python Programming - Generators - Discussion
Discussion Forum : Generators - General Questions (Q.No. 15)
15.
How can you pass a value to a generator function from the outside?
Answer: Option
Explanation:
The
send()
method allows you to pass a value to a generator function from the outside. This value becomes the result of the yield
expression.
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