Generators in Python Programming Language

In this tutorial we will learn about about generators in detail.Generator functions is a function which returns generator-iterator with the help of yield keyword.yield works like return in normal functions.Generator function has the same syntax like normal function only difference is it contains yield keyword in function body.



Watch this tutorial to learn about Generators