You are viewing a single comment's thread. Return to all comments →
Python 3 - Dont reinvent the wheel ;)
import numpy as np from scipy import stats size = int(input()) numbers = list(map(int, input().split())) print(np.mean(numbers)) print(np.median(numbers)) print(int(stats.mode(numbers)[0]))
Day 0: Mean, Median, and Mode
You are viewing a single comment's thread. Return to all comments →
Python 3 - Dont reinvent the wheel ;)