input: Write a python function to intersperse elements of a list with a given delimiter.
  assert intersperse('-', ['a', 'b', 'c', 'd'])==['a', '-', 'b', '-', 'c', '-', 'd']
  assert intersperse(0, [1, 2, 3])==[1, 0, 2, 0, 3]
  assert intersperse('and', ['one', 'two', 'three'])==['one', 'and', 'two', 'and', 'three']
output: def intersperse(delimiter, lst):
      result = []
      for i, item in enumerate(lst):
          if i > 0:
              result.append(delimiter)
          result.append(item)
      return result