Thanks a ton @ferdinand for your response. Coffe on me
Thanks, @ferdinand for your answer, actually I was asking for Python which I missed mentioning (I have edited the question), I was reading this article 1 and article 2 to understand the difference but was confused so asked here.
Anyway, thank You!
Wanted to understand if is there any difference between Memory Management of Mutable and Immutable Data Structures in Python. Was Reading a couple of articles but I am still confused about this.