I'm having problem with this code. I think I'm doing something wrong.

```
 import numpy as np

 array = np.zeros(10)

 arrays = []

 for i in range(len(array)):
    array[i] = 1
    arrays.append(array)

 print(arrays[0])

```

I was expecting to get:[1. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
But I'm getting:[1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]

That is the last array I appended to arrays, and not the first one. Why is that happening and more important what can I do to get the desired output?