(m, row, col)
return minors
get the minor of the matrix position m[row][col]
    (all values m[r][c] where r != row and c != col)
get the minor of the matrix position m[row][col]
    (all values m[r][c] where r != row and c != col)
get the minor of the matrix position m [ row ] [ col ] ( all values m [ r ] [ c ] where r ! = row and c ! = col )
def get_minor(m, row, col):
    """
    get the minor of the matrix position m[row][col]
    (all values m[r][c] where r != row and c != col)
    """
    minors = []
    for i in range(len(m)):
        if i != row:
            new_row = m[i][:col]
            new_row.extend(m[i][col + 1:])
            minors.append(new_row)
    return minors
def get_minor ( m , row , col ) : minors = [ ] for i in range ( len ( m ) ) : if i != row : new_row = m [ i ] [ : col ] new_row . extend ( m [ i ] [ col + 1 : ] ) minors . append ( new_row ) return minors