What are generators in Python?
Ans. The way of implementing iterators are known as generators. It is a normal function except that it yields expression in the function.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.