Question d’entretien chez Leggett & Platt

Please describe how a generator function works