def Add(n,i):
return n+i;
def Number():
for i in range(1,10)
yield i
g=number()
n=2
g1=(Add(n,i) for i in g)
n=5
g2=(add(n,i )for i in g1)
print(list(g1))
print(list(g2))
def Add(n,i):
return n+i;
def Number():
for i in range(1,10)
yield i
g=number()
n=2
g1=(Add(n,i) for i in g)
n=5
g2=(add(n,i )for i in g1)
print(list(g1))
print(list(g2))