# the shortcut print(mat_A.T) # proving both give exactly the same result print((mat_A.T == mat_A_T).all()) # True __ __