document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. def aad(lst):
  2.     """
  3.        return the average absolute deviation of the list
  4.    """
  5.     temp = []
  6.     mean = sum(lst) / float(len(lst))
  7.     for i in range(len(lst)):
  8.         temp.append(float(abs(lst[i] - mean)))
  9.     return sum(temp) / len(lst)
  10.    
  11. b = [6, 15, 26, 15, 18, 23, 19, 32, 28, 44]
  12.  
  13. print aad(b)
');