What is deference between mutable and immutable? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is deference between mutable and immutable?

what exactly happen when we modify immutables? Is it possible to refer to modified immutables?

13th May 2018, 11:05 AM
ĐɆⱤɆJɆ the₲reat
ĐɆⱤɆJɆ the₲reat - avatar
2 Answers
+ 5
Actually, nothing will *happen* as any attempt to modify an immutable will result in throwing an exception. That's what will "happen" at most :) P.S. It's Python.
13th May 2018, 11:09 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
Thanks 👌👍
15th May 2018, 12:15 PM
ĐɆⱤɆJɆ the₲reat
ĐɆⱤɆJɆ the₲reat - avatar