From 84ddb26382558b37530888835b336664cf6d7ccd Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sun, 5 Jan 2020 14:24:33 +0200 Subject: [PATCH] Update median.md --- snippets/median.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/median.md b/snippets/median.md index 73665ff4c..2cfcb91bc 100644 --- a/snippets/median.md +++ b/snippets/median.md @@ -7,7 +7,7 @@ Finds the median of a list of numbers. Sort the numbers of the list using `list.sort()` and find the median, which is either the middle element of the list if the list length is odd or the average of the two middle elements if the list length is even. -[`median`](https://docs.python.org/3/library/statistics.html#statistics.median) provides similar functionality to this snippet. +[`statistics.median()`](https://docs.python.org/3/library/statistics.html#statistics.median) provides similar functionality to this snippet. ```py def median(list):