def mat_splice(matrix, r, c):
    """
    Function which returns a matrix with the first r rows and first c
    columns of the original matrix
    """

    result = list()

    for i in range(r):
        row = matrix[i]
        result.append(row[:c])

    return result