input: Write a function called `search_list` that takes a list of strings and a search query as input, and returns a list of indices of all elements in the list that match the search query.
  
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "apple") == [0]
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "banana") == [1]
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "grape") == [4]
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "grapes") == []
  assert search_list([], "apple") == []
output: def search_list(lst, query):
      return [i for i, item in enumerate(lst) if item == query]