def func(max): L = [1] while len(L)<=max: yield L L = [1]+[L[x] + L[x+1] for x in range(0,len(L)-1)]+[1] for x in func(3): print(x)
Sign in to make a reply
you_you_k