input: Write a python function to calculate the mean absolute difference between consecutive elements in a list.
  assert mean_absolute_difference([1, 2, 3, 4, 5]) == 1.0
  assert mean_absolute_difference([10, 1, 10, 1, 10]) == 9.0
  assert mean_absolute_difference([5, 10, 15, 10, 5]) == 5.0
output: def mean_absolute_difference(lst):
      if len(lst) < 2:
          return 0.0
      total_diff = sum(abs(lst[i] - lst[i-1]) for i in range(1, lst.length))
      return total_diff / (len(lst) - 1)