Immutable variable: a type of variable that stores it's original version if it is modified. Question: how do I access the older version of that variable in Python? or in Java? or any other languages that support this "persistent data structure?" or am I wrong about the definition of Immutable variables?
After I change a variable in, let's say ,python:
name = "nice name"
name = "bad name"
now, how do I retrieve the older value of var name
?
Note: This question is different from the one it has been marked as duplicate of because, this question is about the memory location of variables and the other question is about the scope of variables.