Back to all terms

Generator (Python)

Definition Python function that returns an iterator producing a sequence of values when iterated over.

Why It Matters

Efficiently generates large sequences without storing all elements in memory.

Deeper Detail

Useful for data pipelines and streaming large datasets in BMLL analytics.