Discuss / Python / ...
    L = [1]
    while True:
        yield L
        OLO = [0] + L + [0]
        L = [OLO[i] + OLO[i + 1] for i in range(len(OLO) - 1)]

  • 1

Reply