input: 
  def search_list(lst: list, query: str) -> list:
      """
      Return a list of indices of all elements in the list which match the search query.
      
      >>> search_list(["apple", "banana", "peach", "orange", "grape"], "apple")
      [0]
      >>> search_list(["apple", "apple", "banana", "apple"], "apple")
      [0, 1, 3]
      >>> search_list(["banana", "orange", "grape"], "apple")
      []
      """
      result = []
      for i in range(len(lst)):
          if lst[i] == query:
              result.append(i)
      return result
  
output:     result = []
      for i in range(len(lst)):
          if lst[i] == query:
              result.append(i)
      return result