Reusing Variable Names
Learn how variables can be useful.
We'll cover the following
It’s also important to keep in mind that a name is unique in the sense that the same name can only refer to one value (object) at a time.
If we successively assign different values to the same variable, the latest one will remain. The previous value of the variable is overwritten, like so:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy