Names and Values in Python

The following is a short talk about variables, names and assignments and how slight differences in the implementation of standard functions affect the behavior of objects in Python and more.

Lessons

  • Names are assigned values that have a type

  • A name cannot be assigned to other name

  • An assignment never copies data

  • Immutable objects can’t change their value, mutable objects can change through modifying or rebinding

Sources