Please help me with the solution of the problem: in a two-dimensional array, swap the elements located symmetrically relative to the main diagonal.
def obmen():
for i in range(n-1):
for j in range(n-i):
if n-i+1 < j:
b = A[i][j]
A[i][j] = A[n-j+1][n-i+1]
A[n-j+1][n-i+1] = b
for i in range(n):
for j in range(n):
print('%0.3f'%(A[i][j]), end=' ')
print()
return A
A = obmen()