Mean, median, mode, standard deviation and variance

from statistics import mean, median, mode, variance, stdev seq = [24, 15, 67, 86, 45, 12, 37, 84, 26, 17, 48, 12, 25] labels = ('Mean', 'Median', 'Mode', 'Std', 'Variance') fs = (mean, median, mode, stdev, variance) for label, f in zip(labels, fs): print(': '.join([label, str(f(seq))])) # Mean: 38.30769230769231 # Median: 26 # Mode: 12 # Std: 26.205548443617225 # Variance: 686.7307692307692