This is my second day of learning python (I know the basics of C++ and some OOP.), and I have some slight confusion regarding variables in python.
Here is how I unde
numpy.copy() function page has an explanation
https://docs.scipy.org/doc/numpy/reference/generated/numpy.copy.html
The example it gives is as follows:
Create an array x, with a reference y and a copy z:
x = np.array([1, 2, 3])
y = x
z = np.copy(x)
Note that, when we modify x, y changes, but not z:
x[0] = 10
x[0] == y[0]
True
x[0] == z[0]
False