Python3: Mutable, Immutable… everything is object!

Python3: Mutable, Immutable… everything is object!

Functions id and type

The id function:

The type function:

Mutable Objects

Immutable Objects

Why does it matter and how differently does Python treat mutable and immutable objects?

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

More to know about the python memory handling

Let’s do it step by step:

--

--

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