Comprehensions, Iterators and Generators
A for loop that builds a list is so common that Python has a short way to write it. In this course you write list, dictionary and set comprehensions, use the helpers zip, enumerate, any, all and sorted with a key, and see what a for loop really does underneath, with iterables and iterators. You write generators with yield, which give their values one at a time and so can handle very long or even endless sequences, and you join generators into a pipeline. A word-frequency pipeline is the project at the end. The practice runs your code on real data and tells you which results are wrong.