input: Write a function to search for all occurrences of a given search query in a list and return the indices of these occurrences. If the search query does not exist in the list, return an empty list.
  assert search_list(["apple", "banana", "peach", "orange", "grape", "apple"], "apple") == [0, 5]
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "orange") == [3]
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "kiwi") == []
  assert search_list([], "pear") == []
  assert search_list(["apple", "banana", "peach", "orange", "grape"], "") == []
output: def search_list(lst, query):
      return [i for i, item in enumerate(lst) if item == query]