<garvit244>118_1.py
def generate( numRows):
    triangle = []
    
    for row in range(numRows):
        new_row = [0 for _ in range(row+1)]
        new_row[0], new_row[-1] = 1, 1
    
        for col in range(1, len(new_row)-1):
            new_row[col] = triangle[row-1][col-1] + triangle[row-1][col]
        triangle.append(new_row)
    return triangle
def sample_funcname ( var_0 ) :
    var_1 = [ ]
    for var_3 in range ( var_0 ) :
        var_7 = [ 0 for var_4 in range ( var_3 + 1 ) ]
        var_7 [ 0 ] , var_7 [ - 1 ] = 1 , 1
        for var_9 in range ( 1 , len ( var_7 ) - 1 ) :
            var_7 [ var_9 ] = var_1 [ var_3 - 1 ] [ var_9 - 1 ] + var_1 [ var_3 - 1 ] [ var_9 ]
        var_1.append ( var_7 )
    return var_1
