Professional Documents
Culture Documents
• y=x x 10 y 10
• x = 15 x 15 y 10
Here, x points to a different object
• So, the value of x is 15, but the value of y remains 10
What is a mutable data type?
• Mutable data types are the objects that can be changed after it is created
• Examples of mutable data type: list etc.
• y=x x
[2, 4, 6] y points to the same object [2, 4, 6]
y