Hello everyone,

I have a 2 dimensional np array and I want to take each row, transform it to a tuple and assign it to a dictionary in the same order with their values as empty np arrays. However as I do that, the order of the entries changes. Can you please help me understand why?

The order of the rows in my 2d np array below is:

1- [2, 4]

2- [3, 6]

3- [5, 3]

4- [3, 1]

However my code below creates a dictionary with the order:

1- [3, 1]

2- [2, 4]

3- [3, 6]

4- [5, 3]

My Code:

```
points = np.array([[2, 4], [3, 6], [5, 3], [3, 1]])
points_dic = {tuple(point) : np.array([]) for point in points}
for key in points_dic:
print(key)
```

What I expected to happen:

Output:

```
(2, 4)
(3, 6)
(5, 3)
(3, 1)
```

What actually happened:

Output:

```
(3, 1)
(2, 4)
(3, 6)
(5, 3)
```