newArr = np.array(oldArr)
Here is what the above code is Doing:
1. We create a new empty array called newArr.
2. We convert the old array into a NumPy array called oldArr.
3. We set newArr equal to oldArr.
Now, let’s see what happens when we modify oldArr: