Names, objects and references

easy

Python keeps two things separate: a namespace of names, and a heap of objects with reference counts. Assignment binds a name and never copies; mutation changes an object every name can see. Watch b = b + [9] create a second object and b += [9] quietly not.

Loading the visualizer…

Read the questions this explains