input: Write a function to search for all indices of elements in a given list that match a specified search query and return these indices.
  
  def search_list(list, search_query):
      result = []
      for i in range(len(list)):
          if list[i] == search_query:
              result.append(i)
      return result
  
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "apple") == [0]
  assert search_list(["apple", "banana", "apple", "orange", "apple"], "apple") == [0, 2, 4]
  assert search_list(["banana", "peach", "orange", "grape"], "apple") == []
  assert search_list([], "apple") == []
output: def search_list(list, search_query):
      result = []
      for i in range(len(list)):
          if list[i] == search_query:
              result.append(i)
      return result