def row_multiply(matrix, row, factor):
    """
    Multiplies a row by a factor
    :param matrix: List of lists of equal length containing numbers
    :param row: index of a row
    :param factor: multiplying factor
    :return: List of lists of equal length containing numbers
    """
    matrix[row] = [i*factor for i in matrix[row]]
    return matrix