input: Write a python function to search for an element in a list and return its index if found, otherwise return -1.
  assert search_list([2, 3, 5, 9], 5) == 2
  assert search_list([2, 3, 5, 9], 4) == -1
  assert search_list([1, 2, 3, 4, 5], 1) == 0
  assert search_list([], 1) == -1
output: def search_list(lst, target):
      try:
          return lst.index(target)
      except ValueError:
          return -1