What is the use of yield in Python?

References