Cognizant interview question

What is yield in python? How is it different from return