Test your stats module

Generate a list of random numbers then try out the descriptive statistics on them.

# -*- coding: utf-8 -*-
Created on Fri Mar 26 11:25:21 2021

@author: rmontant
import random
import stats

mynums = []
for i in range(1,100):
    mynums.append( random.randrange(1, 1000) )

print('Mean:', stats.mean(mynums))
print('std. dev.:', stats.stdev(mynums))
print('Median:', stats.median(mynums))
print('geometric_mean:', stats.geometric_mean(mynums))
print('span:', stats.span(mynums))