input: 
  from typing import List, Union
  
  def search_list(list: List[Union[str, int]], search_query: Union[str, int]) -> List[int]:
      """ Searches the list for elements that match the search query and returns a list 
      of their indices.
      
      >>> search_list(["apple", "banana", "peach", "orange", "grape"], "apple")
      [0]
      >>> search_list([4, 7, 3, 7, 2], 7)
      [1, 3]
      >>> search_list([10, 20, 30], 40)
      []
      """
      result = []
      for i in range(len(list)):
          if list[i] == search_query:
              result.append(i)
      return result
  
  search_list(["apple", "banana", "peach", "orange", "grape"], "apple") # returns [0]
  
output:     result = []
      for i in range(len(list)):
          if list[i] == search_query:
              result.append(i)
      return result