<reponame>luis2ra/py3-00-w3schools
# Demo Python Dictionaries - Dictionary
'''
Check if Key Exists

To determine if a specified key is present in a dictionary use the in keyword.

'''

# Check if "model" is present in the dictionary:
thisdict =	{
    "brand": "TOYOTA",
    "model": "LAND CRUISER",
    "year": 2020
}

if "model" in thisdict:
    print("Yes, 'model' is one of the keys in the thisdict dictionary") 
# Demo Python Dictionaries - Dictionary
'''
Check if Key Exists

To determine if a specified key is present in a dictionary use the in keyword.

'''

# Check if "model" is present in the dictionary:
thisdict =	{
    "brand": "TOYOTA",
    "model": "LAND CRUISER",
    "year": 2020
}

if "model" in thisdict:
    print("Yes, 'model' is one of the keys in the thisdict dictionary")
# Demo Python Dictionaries - Dictionary Check if Key Exists  To determine if a specified key is present in a dictionary use the in keyword. # Check if "model" is present in the dictionary: