So I'm trying to add a new "name" as an alias to an existing key in a dictionary.
for example:
dic = {"duck": "yellow"}
userInput = raw_input("Type the *name* and *newname* (alias) here:")
#Somecode that allows me to input newname as an alias to "duck"
The user types two words: name to reference "duck", and newname a new key that should point to the value of the existing key. Ie an alias.
So when I change the value for "duck" the "newname" should change too, and vice versa.
I've tried a lot of things but can't figure out a good way to do this.