def transpose(A, mul_factor=1):
    """The transpose of the matrix.

    Args
    ----
    A (compulsory)
        A matrix.
    mul_factor (int/float, optional)
        Multiplication factor of the matrix. Defaults to 1.

    Returns
    -------
    Matrix
        The transpose of the given matrix multiplied by the multiplication factor.
    """
    matrix = []
    for i in range(len(A[0])):
        matrix.append([])
        for j in range(len(A)):
            matrix[i].append(A[j][i] * mul_factor)
    return matrix