def triangle():
    b = [1]
    while True:
        yield b
        b = [1] + [b[i] + b[i+1] for i in range(len(b)-1)] + [1]

eaa302324ffd280f18a801ad24bfdf63567d48a0
<mask token>

def triangle():
    b = [1]
    while True:
        yield b
        b = [1] + [(b[i] + b[i + 1]) for i in range(len(b) - 1)] + [1]

def triangle():
    b = [1]
    while True:
        yield b
        b = [1] + [b[i] + b[i+1] for i in range(len(b)-1)] + [1]
