prices = {"apple": 3, "banana": 1, "cherry": 5} for fruit in prices: print(fruit, "costs", prices[fruit])
Click Run to execute this code.