Pregunta de entrevista de Infosys

what is iterator and generator in python?