Human: how to check if key exists + haskeys. Assistant: 
Here is a Python program to check if a key exists + haskeys

import json

def key_exists(dictionary, key):
    """Checks if key exists in dictionary."""
    return key in dictionary

# Enter the dictionary
dictionary = {"name": "dahlia", "age": "23", "city": "Delhi"}

# Enter the key
key = "city"

# Calling the function
print((key_exists(dictionary, key)))

#Example Output
# True

#Remember to inspect code for bugs.