demo_ref_dictionary_popitem.py:
car = { "brand": "Ford", "model": "Mustang", "year": 1964 } car.popitem() print(car)
➜ begtut>python demo_dictionary_popitem.py
{'brand': 'Ford', 'model': 'Mustang'}