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