Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (2.2k points)

Could someone tell me what is the difference between Mutable and Immutable objects in Python?

1 Answer

0 votes
by (3.9k points)

Mutable and Immutable Objects are ways to categorize objects, into two different groups; one which couldn’t be modified, and the other which could be modified. Immutable is the objects which couldn’t be changed after it is created, and Mutable are the objects which could be altered after its creation. Immutable objects contain all the in-built types like int, float, tuple, etc., and Mutable consist of list, dict, set, etc. And a custom class generally falls under the Mutable objects group.

If you are wishing to master Python, then enroll in a good Python course from reputed e-learning institute like Intellipaat. Also, watch the following video on Python for Beginners which helps, you get started.

Related questions

0 votes
1 answer
asked Feb 23, 2021 in Java by Jake (7k points)
0 votes
1 answer
asked Feb 7, 2021 in Python by ashely (50.2k points)
0 votes
2 answers
asked Feb 18, 2021 in Java by Harsh (1.5k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...