Variables in Python are not buckets that contain things, but pointers: variables point to objects.
Assignment statements in Python don't copy anything. Assignments just point a variable to an object.
[
add
]
[
|
|
...
]
Variables in Python are not buckets that contain things, but pointers: variables point to objects.
Assignment statements in Python don't copy anything. Assignments just point a variable to an object.