input: from typing import List
  
  def auto_complete(dictionary: List[str], prefix: str) -> List[str]:
      """Given a dictionary of words and a prefix, return 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(["hello", "halo", "hero", "harmony", "hills"], "h")
      ['hello', 'halo', 'hero', 'harmony', 'hills']
      """
output:     result = []
      for word in dictionary:
          if word.startswith(prefix):
              result.append(word)
      return result