input: Write a function to search for an item in a list and return its index.
  assert search_list([1, 2, 3, 4, 5], 3) == 2
  assert search_list([10, 20, 30, 40], 25) == -1
  assert search_list(['a', 'b', 'c', 'd'], 'd') == 3
  assert search_list([], 5) == -1
output: def search_list(lst, item):
      try:
          return lst.index(item)
      except ValueError:
          return -1