Question d’entretien chez Morgan Stanley

What are generator functions in python? How to implement those?