demo_dictionary_loop2.py:
thisdict = { "brand": "Ford", "model": "Mustang", "year": 1964 } for x in thisdict: print(thisdict[x])
C:\Users\My Name>python demo_dictionary_loop2.py
Ford
Mustang
1964