input: Write a function that generates a list of suggestions for an autocomplete feature based on a given prefix. The function should iterate through the provided dictionary and add any words that start with the given prefix to a list, then return this list.
  
  def auto_complete(dictionary, prefix):
      prefix_words = []
      for word in dictionary:
          if word.startswith(prefix):
              prefix_words.append(word)
      return prefix_words
  
  assert auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "d") == ['dog', 'deer', 'deal', 'dungeon', 'dark', 'dusk']
  assert auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "de") == ['deer', 'deal', 'dungeon', 'dark']
  assert auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "du") == ['dungeon', 'dusk']
  assert auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "e") == []
  assert auto_complete([], "d") == []
output: def auto_complete(dictionary, prefix):
      prefix_words = []
      for word in dictionary:
          if word.startswith(prefix):
              prefix_words.append(word)
      return prefix_words