statistics.median_low() vs statistics.median_high()
statistics.median_low() and statistics.median_high() are both Python Statistics Module APIs, and choosing between them is a common point of confusion. This page compares their syntax, parameters, return values, and typical use cases so you can pick the right one. statistics.median_low(): Returns the low median of numeric data (for when there are an even number of values). Its syntax is statistics.median_low(data), and it returns number statistics.median_high(): Returns the high median of numeric data. Its syntax is statistics.median_high(data), and it returns number Example of statistics.median_low(): statistics.median_low([1, 3, 5, 7]) # 3. Example of statistics.median_high(): statistics.median_high([1, 3, 5, 7]) # 5. Read the full references for statistics.median_low() and statistics.median_high() to see parameters, edge cases, and example code side by side. Other Statistics Module APIs worth comparing: statistics.mean(), statistics.median(), statistics.mode(), statistics.multimode(), statistics.stdev(), statistics.pstdev(). Both belong to the Statistics Module category in the Python Reference documentation. Try both in the Python playground to see the behavioral difference live.