#creates an empty dictionary keychain = {} print(keychain) #adds a key called key1, with the value car keychain["key1"] = "car" print(keychain) #adds two more keys called key2 and key3, with values apartment and car2 keychain["key2"] = "apartment" keychain["key3"] = "car2" #removes key1 and its value from the dictionary keychain.pop("key1") print(keychain) #adds key1 back in with value car #then updates key1 value to mini-van keychain["key1"] = "car" print(keychain) keychain["key1"] = "mini-van" print(keychain) #prints the value for key2 print(keychain["key2"]) #grabs all keys in dictionary and prints them keys = keychain.keys() print(keys) #grabs all values in dictinoary and prints them values = keychain.values() print(values) #prints a clean formated dictionary keys = keychain.keys() for x in keys: print(x, "goes to", keychain[x])