input: Write a python function to search for a value in a list and return its index, returning -1 if not found.
  assert search('apple', ['bannanas', 'oranges', 'apple'])==2
  assert search('apple', ['bannanas', 'oranges', 'mango'])==-1
  assert search('mango', ['mango', 'peach', 'apple'])==0
output: def search(value, lst):
      try:
          return lst.index(value)
      except ValueError:
          return -1