user
Task: What is the difference between mutable and immutable objects?


assistant
Mutable objects are objects that can be changed. That is, the object's state can be modified after it is created. Examples of mutable objects are lists, dictionaries, and sets. Immutable objects, on the other hand, cannot be changed. Once an object is created, its state cannot be modified. Examples of immutable objects are strings and numbers.