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\"
You can put this check at the start of your function:
for row in square: if len(row) != len(square): return False
Or maybe shorter
if not all(len(square) == len(row) for row in square): return False