my_dict = {"apple": 1, "banana": 2, "orange": 3} if "apple" in my_dict: print("Key already exists") else: print("Key does not exist")