data = [[col for col in range(4)] for row in range(4)]
'''
[0,1,2,3]
[0,1,2,3]
[0,1,2,3]
[0,1,2,3]
------
[0,0,0,0]
[1,1,1,1]
[2,2,2,2]
[3,3,3,3]
'''
for r_index,row in enumerate(data):
for c_index in range(r_index,len(row)):
tmp = data[c_index][r_index]
data[c_index][r_index] = row[c_index]
data[r_index][c_index] = tmp
for r in data:print(r)