Computer Science, asked by Anonymous, 5 months ago

What do you mean by mutable and immutable data types? Give examples of each.​

Answers

Answered by Anonymous
42

\huge\underline\mathrm{\red{AnSweR}}

To summarise the difference, mutable objects can change their state or contents and immutable objects can't change their state or content. Immutable Objects : These are of in-built types like int, float, bool, string, unicode, tuple. In simple words, an immutable object can't be changed after it is created.

Answered by MizZFaNtAsY
10

To summarise the difference, mutable objects can change their state or contents and immutable objects can't change their state or content. Immutable Objects : These are of in-built types like int, float, bool, string, unicode, tuple. In simple words, an immutable object can't be changed after it is created.

Similar questions