1gen = (i for i in range(10))
2for i in gen:
3    print(i)
4