Question: what are iterators and generators in python?
Answer: Python Iterators, generators, and the for loop Iterators are containers for objects so that you can loop over the objects. In other words, you can run the "for" loop over the object. ... For example, list is an iterator and you can run a for loop over a list.