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]))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 0: Mean, Median, and Mode
You are viewing a single comment's thread. Return to all comments →
Python 3 - Dont reinvent the wheel ;)