Wonder about "You've Been Reassigned"


#1

I kind of get it when I reassigned a variable to a new value, the previous value will be erased.

But as I think deeper, I have found myself too ignorant to explain why. Reassignment makes sense to me subconsciously, could anyone explain to me how it works that way, or any additional reading I could read on my own?

Sorry, maybe the question is too stupid to ask. my apology.
Thank you for your explaination.


#2

Hi @cloudrockstar86717,

Within a given scope, a name can only refer to one object at a time. Therefore, if you assign a value to a name, that name no longer refers to any previous value that may have been assigned to it.


#3

Thank you, those words are worth for me to ponder.


#4