Cognizant Interview Question

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