demo_ref_dictionary_keys2.py:
car = { "brand": "Ford", "model": "Mustang", "year": 1964 } x = car.keys() car["color"] = "white" print(x)
C:\Users\My Name>python demo_dictionary_keys2.py
dict_keys(['brand', 'model', 'year', 'color'])