'''
Created on 2 Jun 2020

@author: umer
'''
def pascal_triangle(n):
    trow = [1]
    y = [0]
    for x in range(0,n):
        print(trow)
        trow=[l+r for l,r in zip(trow+y, y+trow)]
    return n>=1
pascal_triangle(4)
952eda8010cb1cb9e43e60d2b3982a9ee7fcc84d
<mask token>

<mask token>


def pascal_triangle(n):
    trow = [1]
    y = [0]
    for x in range(0, n):
        print(trow)
        trow = [(l + r) for l, r in zip(trow + y, y + trow)]
    return n >= 1


<mask token>

<mask token>


def pascal_triangle(n):
    trow = [1]
    y = [0]
    for x in range(0, n):
        print(trow)
        trow = [(l + r) for l, r in zip(trow + y, y + trow)]
    return n >= 1


pascal_triangle(4)

'''
Created on 2 Jun 2020

@author: umer
'''
def pascal_triangle(n):
    trow = [1]
    y = [0]
    for x in range(0,n):
        print(trow)
        trow=[l+r for l,r in zip(trow+y, y+trow)]
    return n>=1
pascal_triangle(4)