Post

MANSA MUSA🇬🇭
MANSA MUSA🇬🇭@stephenadumatta·
@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
0
0
2
193
Gopuff
Gopuff@gopuff·
No middleman means no markups. Add $0 delivery on your first order and 100s of deals, and staying on the couch starts to look financially responsible.
English
0
7
221
641.7K
Idoru Toei
Idoru Toei@ToeiIdoru·
@PythonPr Obviously, the difference is that one has a green checkmark and the other a red X.
English
0
0
1
103
Robert Lofthouse
Robert Lofthouse@RobLofthouse·
@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
0
0
1
49
Paylaş