input: def auto_complete(dictionary, prefix):
      """Generate a list of suggestions based on a given prefix.
      >>> auto_complete(["dog", "deer", "deal"], "de")
      ['deer', 'deal']
      >>> auto_complete(["dog", "deer", "deal"], "do")
      ['dog']
      >>> auto_complete(["dog", "deer", "deal"], "d")
      ['dog', 'deer', 'deal']
      >>> auto_complete(["dog", "deer", "deal"], "a")
      []
      """
output:     suggestions = []
      for word in dictionary:
          if word.startswith(prefix):
              suggestions.append(word)
      return suggestions