So I\'m stuck on this problem where I\'ve been asked to write an function in Python that checks to see if an n-dimensional array (is that what they\'re called?) is \"symmetric\"
Here's an alternative version for the main test:
for i, line in enumerate(matrix): for j in range(len(line)): if a[i][j] != a[j][i]: return False return True
Of course that all the other answers that advise you to test if the matrix is square hold true.