Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 765 Bytes

File metadata and controls

16 lines (13 loc) · 765 Bytes

6. Generators

Iteration (the for-loop) is one of the most common programming patterns in Python. Programs do a lot of iteration to process lists, read files, query databases, and more. One of the most powerful features of Python is the ability to customize and redefine iteration in the form of a so-called "generator function." This section introduces this topic. By the end, you'll write some programs that process some real-time streaming data in an interesting way.

Contents