What does the ‘yield’ keyword in Python do?

What does the ‘yield’ keyword in Python do?