def one_to_ten(): for i in range(10): yield i