What do you understand by mutable and immutable in python?



What do you understand by mutable and immutable in python?..

Answer / Manu Kumar Pandey

In Python, a mutable object is an object whose state can be changed after it has been created. These include lists, dictionaries, and sets. On the other hand, an immutable object cannot be modified once it's created. Examples of immutable objects are integers, floats, and tuples.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What does unittest main () do?

1 Answers  


What are the 3 types of loops?

1 Answers  


Does python supports hybrid inheritance?

1 Answers  


What are the disadvantages of the python?

1 Answers  


Why do we use __ init __ in python?

1 Answers  


Explain about the programming language python?

1 Answers  


What is form feed in python?

1 Answers  


What are the types of python?

1 Answers  


How to avoid having class data shared among instances?

1 Answers  


Why is python called python?

1 Answers  


Which gui is best for python?

1 Answers  


Python list of lists, changes reflected across sublists unexpectedly

1 Answers  


Categories