demo_dictionary_dict.py:
thisdict = dict(brand="Ford", model="Mustang", year=1964) # note that keywords are not string literals # note the use of equals rather than colon for the assignment print(thisdict)
➜ begtut>python demo_dictionary_dict.py
{'brand': 'Ford', 'model': 'Mustang', 'year': 1964}