Question: is yield a keyword in python?
Answer: Yield. Yield is a keyword that is used like return , except the function will return a generator. Here it's a useless example, but it's handy when you know your function will return a huge set of values that you will only need to read once.