Q:

Create a Python project to perform some simple statistics on a list of values

0

Create a Python project to perform some simple statistics on a list of values

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#Source: https://bit.ly/3eJPW8E
import stats
lst     = [6, 6, 10, 15 , 9 , 8, 17, 5]
Stats   = stats.Stats

print("Average\t", Stats.average(lst))
print("MD\t", Stats.meanDeviation(lst))
print("Count 7\t", Stats.count(lst, 7))
print("Length\t", Stats.length(lst))
print("Max\t", Stats.max(lst))
print("Min\t", Stats.min(lst))
print("Range\t", Stats.range(lst))
print("Sum\t", Stats.sum(lst))
print("Sort\t", Stats.sort(lst))
print("Variance", Stats.variance(lst))
print("SD\t", Stats.standardDeviation(lst))
print("Median\t", Stats.median(lst))

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now