How I can do for do this code efficiently?
import numpy as np
array = np.zeros((10000,10000))
lower = 5000
higher = 10000
for x in range(lower, higher):
for y in range(lower, higher):
array[x][y] = 1
print(array)
I think must be a efficient way to do this with a numpy library (without loops).