demo_ref_dictionary_pop2.py:
car = { "brand": "Ford", "model": "Mustang", "year": 1964 } x = car.pop("model") print(x)
➜ begtut>python demo_dictionary_pop2.py
Mustang