input: Write a python function to search for an element in a list and return its index, or -1 if not found.
  assert search_list([1, 2, 3, 4, 5], 3) == 2
  assert search_list([10, 20, 30, 40, 50], 25) == -1
  assert search_list([], 1) == -1
output: def search_list(lst, element):
      try:
          return lst.index(element)
      except ValueError:
          return -1