Mutable and Immutable Types in Python

When learning Python, you will inevitably encounter the concepts of mutable and immutable data types. All the discussions below are based on memory addresses. Immutable data types: When the value of a variable of this type changes, its corresponding memory address also changes. Such data types are called immutable. Mutable data types: When the ...

Posted on Sun, 24 May 2026 16:39:36 +0000 by riddlejk