input: 
  def auto_complete(dictionary, prefix):
      """
      Generates a list of suggestions based on a given prefix from a dictionary of words.
      
      >>> dictionary = ["dog", "deer", "deal", "dungeon", "dark", "dusk"]
      >>> prefix = "d"
      >>> auto_complete(dictionary, prefix)
      ['dog', 'deer', 'deal', 'dungeon', 'dark', 'dusk']
      
      >>> dictionary = ["cat", "car", "cab"]
      >>> prefix = "ca"
      >>> auto_complete(dictionary, prefix)
      ['cat', 'car', 'cab']
      """
      prefix_words = []
      for word in dictionary:
          if word.startswith(prefix):
              prefix_words.append(word)
      return prefix_words
  
output:     prefix_words = []
      for word in dictionary:
          if word.startswith(prefix):
              prefix_words.append(word)
      return prefix_words