I have a dictionary that contains variables that are text. I want the dictionary to have the updated values of all the variables.However, when I update the variable, the dictionary still holds the old value.
For instance:
firstValue = "First Value Key"
secondValue = "Second Value Key"
thirdValue = "Third Value Key"
Dictionary = {"0":firstValue,
"1":secondValue,
"2":thirdValue}
print(Dictionary["0"])
firstValue = "New Value"
print(Dictionary["0"])
The output is the following:
First Value Key
First Value Key
But I want the output to look like this:
First Value Key
New Value
What am I missing?