input: Write a python function to find the index of a target number in a list.
  assert search([1, 2, 3, 4, 5], 3) == 2
  assert search([10, 20, 30, 40, 50], 30) == 2
  assert search([5, 4, 3, 2, 1], 1) == 4
  assert search([1, 2, 3, 4, 5], 6) == -1
output: def search(lst, target):
      try:
          return lst.index(target)
      except ValueError:
          return -1