demo_ref_dictionary_items2.py:
car = { "brand": "Ford", "model": "Mustang", "year": 1964 } x = car.items() car["year"] = 2018 print(x)
➜ begtut>python demo_dictionary_items2.py
dict_items([('brand', 'Ford'), ('model', 'Mustang'), ('year', 2018)])