input: Write a function to develop an autocomplete feature for a text editor. The function should generate a list of suggestions based on a given prefix from a dictionary of words. If the dictionary is empty, the function should return an empty list.
  assert auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "d")==['dog', 'deer', 'deal', 'dungeon', 'dark', 'dusk']
  assert auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "de")==['deer', 'deal']
  assert auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "do")==['dog']
  assert auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "x")==[]
  assert auto_complete([], "d")==[]
output: def auto_complete(words, prefix):
      return [word for word in words if word.startswith(prefix)]