Python: Everything is object.


The objects in which you can change the fields and states after the object is created are known as Mutable objects. Example: java.

Most python objects (booleans, integers, floats, strings, and tuples) are immutable. This means that after you create the object and assign some value to it, you can’t modify that value. Definition An immutable object is an object whose value cannot change.

What is immutable with examples?

how arguments are passed to functions and what does that imply for mutable and immutable objects?



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store