def pretty_square(n):
  for i in range(1, 2*n):
    for j in range(1, 2*n):
      value = max(abs(n - i), abs(n - j)) + 1
      print(value, end=" ")
    print()

pretty_square(3)
09f6aeda2cec5ce5b2d0c218756b17a00e6d0c65
<mask token>

def pretty_square(n):
    for i in range(1, 2 * n):
        for j in range(1, 2 * n):
            value = max(abs(n - i), abs(n - j)) + 1
            print(value, end=' ')
        print()


<mask token>

def pretty_square(n):
    for i in range(1, 2 * n):
        for j in range(1, 2 * n):
            value = max(abs(n - i), abs(n - j)) + 1
            print(value, end=' ')
        print()


pretty_square(3)

def pretty_square(n):
  for i in range(1, 2*n):
    for j in range(1, 2*n):
      value = max(abs(n - i), abs(n - j)) + 1
      print(value, end=" ")
    print()

pretty_square(3)