Lecture 32: Python is Immutable

visibility 14 Aufrufe schedule vor 1 Jahren timer 3:41
open_in_new Dailymotion
In Python, immutability means that once an object is created, its value cannot be changed. If you try to modify an immutable object, a new object is created instead, leaving the original object untouched. This behavior ensures data integrity and consistency, especially in scenarios where data is shared across multiple parts of a program.