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