I am to create an array using only NumPy tools. There it is:
[[2 2 2 2 2] [2 1 1 1 2] [2 1 1 1 2] [2 1 1 1 2] [2 2 2 2 2]]
That is my
x = numpy.full((5,5), 2, dtype=int) x[1:-1,1:-1] = 1