my_dict = {"apple": 1, "banana": 2, "orange": 3}
key_to_check = "apple"
try:
value = my_dict[key_to_check]
print(f"The key '{key_to_check}' exists in the dictionary with a value of {value}")
except KeyError:
print(f"The key '{key_to_check}' does not exist in the dictionary")