An object whose internal state can be changed is called a mutable object, while an object whose internal state cannot be changed is called an immutable object.
The following are examples of immutable objects:
And the following are examples of mutable objects:
User-defined classes can be mutable or immutable, depending on whether their internal state can be changed or not.
Python immutable example
When you declare a variable and assign its an integer, Python creates a new integer object and sets the variable to reference that object: