Pregunta de entrevista de Gnani.ai

What is the use of generators and yield in Python?