In python 3 mean/median/mode is now made easy statistics statistics library https://docs.python.org/3/library/statistics.html statistics pstdev statistics statistics modules statistics statistics module docs.python.org/3/library/statistics.html#statistics.mode statistics module statistics module from Python 3.4 statistics statistics modules statistics module statistical functions https://docs.python.org/3/library/statistics.html statistics https://docs.python.org/3/library/statistics.html statistics