input: 
  def auto_complete(dictionary, prefix):
      """
      Generate a list of words from the given dictionary that start with the provided prefix.
      
      >>> auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "d")
      ['dog', 'deer', 'deal', 'dungeon', 'dark', 'dusk']
      >>> auto_complete(["cat", "car", "cake", "candy"], "ca")
      ['cat', 'car', 'cake']
      """
      # list for words with the given prefix
      prefix_words = []
  
      # iterate through the dictionary
      for word in dictionary:
          # if the word starts with given prefix, 
          # add it to the list
          if word.startswith(prefix):
              prefix_words.append(word)
  
      return prefix_words
  
output:     return prefix_words