0 votes
in Python by
Difference between generators and iterators?

1 Answer

0 votes
by

In Python, iterators are used to iterate over a group of elements (in a list, for example). The way of implementing these iterators is known as generators. It yields an expression in the function, but otherwise behaves like a normal function.

Related questions

0 votes
asked May 16, 2020 in Python by Robindeniel
0 votes
asked May 17, 2020 in Python by SakshiSharma
...