Knowing the difference between mutable and immutable types in Python is important. In this article I will give you some practical examples of both and show you some of the advantages of using immutable types. We even look at JS / React / functional programming a bit towards the end.
Articles on mutable
Don’t let mutability of compound objects fool you!
By Bob Belderbos on 7 March 2017
In this article I explain the difference between shallow versus deep copy with a working example. It’s an important concept when working with compound objects.