input: 
  def auto_complete(dictionary, prefix):
      """ Generate a list of suggestions from the given dictionary based on the provided prefix.
      >>> auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "d")
      ['dog', 'deer', 'deal', 'dungeon', 'dark', 'dusk']
      >>> auto_complete(["apple", "apricot", "banana", "cherry"], "ap")
      ['apple', 'apricot']
      """
      prefix_words = []
      for word in dictionary:
          if word.startswith(prefix):
              prefix_words.append(word)
      return prefix_words
  
  dictionary = ["dog", "deer", "deal", "dungeon", "dark", "dusk"]
  prefix = "d"
  prefix_words = auto_complete(dictionary, prefix)
  print(prefix_words)
  
output:     prefix_words = []
      for word in dictionary:
          if word.startswith(prefix):
              prefix_words.append(word)
      return prefix_words