Qualcomm interview question

Tell us about generator functions in Python.