input: 
  def search_list(lst: List[str], query: str) -> List[int]:
      """ Searches a given list for all occurrences of a specific search query and returns their indices.
      >>> search_list(["apple", "banana", "peach", "orange", "grape"], "apple")
      [0]
      >>> search_list(["apple", "banana", "apple", "orange", "apple"], "apple")
      [0, 2, 4]
      """
      result = []
      for i in range(len(lst)):
          if lst[i] == query:
              result.append(i)
      return result
  
output:     result = []
      for i in range(len(lst)):
          if lst[i] == query:
              result.append(i)
      return result