Pregunta de entrevista de Hudson River Trading

What is a generator and decorator in Python?