Mutable and Immutable Objects in Python3

Introduction

id and type

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

--

--

Software and Chemical Engineer

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