Pergunta de entrevista da empresa Infosys

what is iterator and generator in python?