python dict keys contains code example
Example: contanskey in python
d = {
"a": 1,
"b": 2
}
# To check if key is there in the dictionary
if "a" in d:
print("Found")
d = {
"a": 1,
"b": 2
}
# To check if key is there in the dictionary
if "a" in d:
print("Found")