The way of implementing an effective representation of iterators is known as generators. It is only the normal function that yields expression in the function.