**My goal:** Get a 25x2 array like the following (a sorted list with its coordinates)

```
0 0
0 1
0 2
0 3
0 4
1 0
1 1
..
..
4 3
4 4

```

**My (failed) solution:** 

```
import numpy as np
n=5
lis=np.zeros((n*n,2))
for i in range(n):
    for j in range(n):
        print(i,j) # This prints just what I want to have in the array
        lis[j,0]=i
        lis[j,1]=j

```

**Output:**

```
array([[4., 0.],
       [4., 1.],
       [4., 2.],
       [4., 3.],
       [4., 4.],
       [0., 0.],
       [0., 0.],
       ....

```