Pergunta de entrevista da empresa Gnani.ai

What is the use of generators and yield in Python?