Post

@PythonPr X and y variables point to different references(objects) in green frame. Therefore y[0]=99 only affects the object y points to. But in the red frame x and y points to the same reference(object) therefore a change at y[0] affects both x and y
English

@PythonPr Obviously, the difference is that one has a green checkmark and the other a red X.
English

@PythonPr The difference (in answer to the question) is that one creates a copy and one creates a reference. However the only thing that is wrong is the graphic, because neither of the pieces of code are wrong.
English






