there is a fundamental difference between Generators and
• generators are data producers,
• coroutines are data consumers.
That is coroutines consume data produced by something else; where as a generator produces a sequence of values that something else can process.
The send() function is used to send values to a coroutine. These dat…[Read more]