input: Write a function to search for an element in a list and return its index or -1 if not found.
  assert search_element(5, [1, 2, 3, 4, 5]) == 4
  assert search_element(10, [1, 2, 3, 4, 5]) == -1
  assert search_element('a', ['a', 'b', 'c', 'd']) == 0
output: def search_element(element, lst):
      try:
          return lst.index(element)
      except ValueError:
          return -1