demo_dictionary_loop2.py:
thisdict = { "brand": "Ford", "model": "Mustang", "year": 1964 } for x in thisdict: print(thisdict[x])
➜ begtut>python demo_dictionary_loop2.py
Ford
Mustang
1964