input: Write a function to find all indices of elements in a given list that match a specific search query. Return the indices as a list. If no elements match the query, return an empty list. The function should be named `search_list` and should accept two parameters: a list and a search query.
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "apple")==[0]
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "orange")==[3]
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "mango")==[]
  assert search_list(["apple", "banana", "peach", "apple", "grape"], "apple")==[0, 3]
  assert search_list([], "apple")==[]
output: def search_list(lst, query):
      return [i for i, item in enumerate(lst) if item == query]