demo_dictionary_in.py:
thisdict = { "brand": "Ford", "model": "Mustang", "year": 1964 } if "model" in thisdict: print("Yes, 'model' is one of the keys in the thisdict dictionary")
➜ begtut>python demo_dictionary_in.py
Yes, 'model' is one of the keys in the thisdict dictionary