The Coder's Apprentice


23. Iterators and generators

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

Title
Introduction
Iterators
Generators
The itertools module
What you learned
Integers (TODO)
Factorials (TODO)
Anagrams (TODO)
Anagrams (TODO)
Subset sum (TODO)
Subdirectories (TODO)
Eight queens (TODO)