Styrow.dev
Question 19 of 45
Python Topic: General medium

What are generators in Python?

Question

What are generators in Python?

Answer

The way of implementing iterators are known as generators. It is a normal function except that it yields expression in the function.