input: 
  def search_list(list, search_query):
      """
      This function takes a list and a search query as input 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", "apple"], "apple")
      [0, 4]
      """
      result = []
      for i in range(len(list)):
          if list[i] == search_query:
              result.append(i)
      return result
  
output:     result = []
      for i in range(len(list)):
          if list[i] == search_query:
              result.append(i)
      return result