• dict
  • mutable
  • list
  • copy

The asker does new_list = old_list or new_dict = old_dict and is surprised when changes to the one reference are reflected in the other. The fix is to copy the list or dict in one of many ways.