Login

Back

Mutable and immutable objects and object referencing

Introduction
When you read about Python, you will frequently come across the terms 'mutable' and 'immutable'. Some objects in Python, such as strings, integers, floats, bytes and tuples, are immutable. Other objects, such as lists, dictionaries and sets are mutable. It is important to understand what these terms mean, and to understand how Python works with different objects. If you don't, you will soon be puzzled by how some of your code behaves!

Please register to read more ......