print("Please input a number:",end='')num = int(input())n = num*2Matrix = [([0] * n)for i in range(n)]for i in range(0,num): x = num-i for j in range(i,n-i): #print(j) #Matrix[i].insert(j,num-i) #Matrix[j].insert(i,num-i) #Matrix[n-i-1].insert(j,num-i) #Matrix[j].insert(n-i-1,num-i) Matrix[i][j] = x Matrix[j][i] = x Matrix[n-i-1][j] = x Matrix[j][n-i-1] = xfor i in range(0,n): #print(i) for j in range(0,n): print(str(Matrix[i][j])+" ",end='') # print(" ",end='') print('/n')