input: Write a function to print food items and their prices from a dictionary.
  assert print_food_items({"apple": 1.2, "banana": 0.5, "cherry": 2.5}) == "apple: $1.2\nbanana: $0.5\ncherry: $2.5\n"
  assert print_food_items({"bread": 2.0, "milk": 1.5}) == "bread: $2.0\nmilk: $1.5\n"
  assert print_food_items({"water": 1.0}) == "water: $1.0\n"
output: def print_food_items(food_dict):
      result = ""
      for item, price in food_dict.items():
          result += f"{item}: ${price}\n"
      return result