Python Programming - Generators - Discussion
Discussion Forum : Generators - General Questions (Q.No. 9)
9.
What is the advantage of using the
yield from
statement in a generator function?
Answer: Option
Explanation:
The
yield from
statement in a generator function allows delegation to another generator, simplifying the syntax and enabling one generator to yield values from another.
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