Computer Science, asked by himanshuchetry12, 8 months ago

What are mutable and immutable types? List immutable and mutable types in python.​

Answers

Answered by iamvanshika53
5

Answer:

Simple put, a mutable object can be changed after it is created, and an immutable object can't. Objects of built-in types like (int, float, bool, str, tuple, unicode) are immutable. Objects of built-in types like (list, set, dict) are mutable. Custom classes are generally mutable.

Answered by devil6416
2
  • Simple put, a mutable object can be changed after it is created, and an immutable object can't. Objects of built-in types like (int, float, bool, str, tuple, unicode) are immutable. Objects of built-in types like (list, set, dict) are mutable. Custom classes are generally mutable.

Similar questions