input: Write a python function to find the index of a target element in a list.
  assert find_element([1, 2, 3, 4, 5], 3) == 2
  assert find_element([1, 2, 3, 4, 5], 6) == -1
  assert find_element(['a', 'b', 'c'], 'b') == 1
output: def find_element(lst, target):
      try:
          return lst.index(target)
      except ValueError:
          return -1