#-------------------------------------
# Lecture 09 -- Debugging
#-------------------------------------

import numpy as np

# Debug the following code which is supposed to find 
# the transpose of the matrix

A = np.array([[ 5,  8,  4,  2],
              [ 1, -6,  5, -7],
              [-2,  2, -9,  1],
              [-3,  5, -8,  7]])

A_transpose = np.zeros(4,4)

for i in range(2):
    for j in range(4):
    A_transpose[j] = A[i]

print(A_transpose-A.T)
