input: Write a function to search for all occurrences of a search query in a given list and return the indices of these occurrences. If the list is empty, return an empty list.
  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"], "pineapple")==[]
  assert search_list([], "apple")==[]
output: def search_list(lst, query):
      return [i for i, item in enumerate(lst) if item == query]