Answer:
Step-by-step explanation:
The following is written in Python and does exactly as described. It creates a dictionary called menu and adds both the keys and their corresponding price values. Then it creates a variable named cookie_price and gives it the value that is returned from using the key "cookies" in the menu dictionary. Finally, it prints out cookie_price
menu = {"ice cream": 4.95, "cookies": 2, "candy": 1}
cookie_price = menu.get("cookies")
print(cookie_price)