I know that yield turns a function into a generator, but what is the return value of the yield expression itself? For example:
def whizbang(): for i in
This code will produce some output
def test(): for i in range(10): x = yield i t = test() for i in test(): print i