Iterators allow your classes to be used in for … in … statements. Generators are an easy way to create iterators.
for … in …