A generator function: creates its objects on the fly.
def iterquad (): for i in range(5): yield (i*i) for j in iterquad(): print j