Discuss / Python / aa
    L3=[1]
    yield L3
    while 1:
        n=0
        L2=[]
        for x in L3:
            y=x+n
            n=x
            L2.append(y)
        L2.append(1)
        yield L2
        L3=L2

  • 1

Reply