input: Write a function to generate a list of suggestions based on a given prefix from a provided dictionary. The function should iterate through the dictionary and check if each word starts with the given prefix. If it does, the word should be added to the list of suggested words. Finally, the function should return the list of suggestions. 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(["apple", "banana", "cherry", "date"], "a")==["apple"]
  assert auto_complete(["cat", "dog", "cow"], "b")==[]
  assert auto_complete([], "a")==[]
  assert auto_complete(["alpha", "beta", "gamma"], "bet")==["beta"]
output: def auto_complete(dictionary, prefix):
      return [word for word in dictionary if word.startswith(prefix)]