input: 
  def auto_complete(dictionary, prefix):
      """
      This function takes a list of words and a prefix, and returns a list of words 
      that start with the given prefix.
  
      >>> auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "d")
      ['dog', 'deer', 'deal', 'dungeon', 'dark', 'dusk']
      >>> auto_complete(["cat", "bat", "rat", "door", "dust"], "do")
      ['door', 'dust']
      """
  
      # 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:     # 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