input: from typing import List
  
  def search_list(elements: List[str], query: str) -> List[int]:
      """ Takes a list of strings and a search query, and returns the indices of all
      elements in the list which match the search query.
      >>> search_list(["apple", "banana", "peach", "orange", "grape"], "apple")
      [0]
      >>> search_list(["apple", "banana", "peach", "orange", "grape"], "grape")
      [4]
      >>> search_list(["apple", "banana", "peach", "orange", "grape"], "banana")
      [1]
      """
output:     indices = []
      for i, element in enumerate(elements):
          if element == query:
              indices.append(i)
      return indices