Sorry if I asked a stupid question. I cannot understand the following codes in python. Why my operations on the "new" array also work on the "old" array?
import numpy as np
old = np.array([[1, 1, 1], [1, 1, 1]])
new = old
new[0, :2] = 0
new==old
output is "TRUE".
I have been using MATLAB for years and just recently start to learn Python. This is totally different from Matlab. And I cannot comprehend the above codes and ask if there is any deep reason for such a result. Thanks a million!