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