code: def diff_info(data):
      
      def get_diff(l):
          diff = 0
          for no1, no2 in iter_steps(l, steps=2):
              diff += abs(no1 - no2)
          return diff
  
      data1 = data[2:]
      diff1 = get_diff(data1)
  
      data2 = data[1:-1]
      diff2 = get_diff(data2)
  
      return diff1, diff2
docs: >>> diff_info([5,5,10,10,5,5,10,10])
      (0, 15)
      >>> diff_info([5,10,10,5,5,10,10,5])
      (15, 0)