McKesson interview question

What is the difference between iterator or generator?