mean median mode assignment question
input:1
Mean: 4.67
Median: 4.5
Mode: 2
input:2
Mean: 5.45
Median: 3
Mode: 2 3
not getting desired output for input1 in median case, please debug the code
import statistics
sample = [2, 2, 3.36, 4, 5, 6, 7, 8]
mean = statistics.mean(sample)
median = statistics.median(sample)
mode = statistics.mode(sample)
Comments
Leave a comment