1>>> import statistics
2
3>>> statistics.median([3, 5, 1, 4, 2])
43
5
6>>> statistics.median([3, 5, 1, 4, 2, 6])
73.5
1>>> import statistics
2
3>>> statistics.multimode([4, 1, 2, 2, 3, 5, 4])
4[4, 2]
5
6>>> statistics.multimode(["few", "few", "many", "some", "many"])
7['few', 'many']
8
9>>> st.multimode([4, 1, 2, 2, 3, 5])
10[2]
1>>> import statistics
2
3>>> statistics.median([3, 5, 1, 4, 2])
43
5
6>>> statistics.median([3, 5, 1, 4, 2, 6])
73.5
8
1>>> import statistics
2
3>>> statistics.mean([4, 8, 6, 5, 3, 2, 8, 9, 2, 5])
45.2
5
1
2 import numpy
3
4speed = [99,86,87,88,86,103,87,94,78,77,85,86]
5
6
7x = numpy.median(speed)
8
9print(x)
1
2 import numpy
3
4speed = [99,86,87,88,111,86,103,87,94,78,77,85,86]
5
6
7x = numpy.median(speed)
8
9print(x)