Python 라이브러리 - statistics
공식 문서 source code 링크 statistics statistics는 평균값과 중앙값을 구할 때 사용하는 모듈입니다. 평균값은 statistics.mean() 함수를 사용하면 간단하게 구할 수 있습니다. import statistics mark = [79, 29, 40, 69, 90, 100, 74, 69] print(statistics.mean(mark)) # 68.75 중앙값은 statistics.median() 함수를 사용해 구하면 됩니다. print(statistics.median(mark)) # 71.5 http://www.yes24.com/Product/Goods/109209932 Do it! 점프 투 파이썬 라이브러리 예제 편 - YES24 『Do it! 점프 투 파이썬』의 후속 편..