>>> data = {"name": "John", "age": 43}
>>> data
{'name': 'John', 'age': 43}
>>> if "name" in data:
... print("Key present")
... else:
... print("Not present")
...
Key present
>>> if "phone" in data:
... print("Exists!")
... else:
... print("Not found!")
...
Not present