Statement Python Tutorial

def simpleGen():
    yield 1
    yield '2 --> punch!'
for eachItem in simpleGen():
    print eachItem