input: Write a function to create an autocomplete feature that takes a list of words and a prefix as inputs, and returns a list of words that start with the given prefix.
  
  
  def auto_complete(dictionary, prefix):
      # 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
  
  dictionary = ["dog", "deer", "deal", "dungeon", "dark", "dusk"]
  prefix = "d"
  
  prefix_words = auto_complete(dictionary, prefix)
  print(prefix_words)
  assert auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "d") == ["dog", "deer", "deal", "dungeon", "dark", "dusk"]
  assert auto_complete(["apple", "apricot", "banana", "cherry"], "ap") == ["apple", "apricot"]
  assert auto_complete(["one", "two", "three", "four", "five"], "t") == ["two", "three"]
  assert auto_complete([], "z") == []
  assert auto_complete(["quick", "brown", "fox", "jumps"], "f") == ["fox"]
  
output: def auto_complete(dictionary, prefix):
      prefix_words = []
      for word in dictionary:
          if word.startswith(prefix):
              prefix_words.append(word)
      return prefix_words