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