From 6231604eb6aff0004c3f800815d8f9562b8f3daa Mon Sep 17 00:00:00 2001 From: Matthew Krause Date: Thu, 30 Jan 2025 15:38:59 -0500 Subject: [PATCH] Update instructions.md Removed references to median. I couldn't find any stipulation that the hands are sorted (and the last task seems to suggest they're not because there's a non-final `11`). The middle card is not necessarily the "median", in a statistical sense, unless they are sorted, and it might be clearer to describe it only as the "middle" card. --- exercises/concept/card-games/.docs/instructions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/concept/card-games/.docs/instructions.md b/exercises/concept/card-games/.docs/instructions.md index 3b60d0b6fe..2eb5a6d321 100644 --- a/exercises/concept/card-games/.docs/instructions.md +++ b/exercises/concept/card-games/.docs/instructions.md @@ -64,13 +64,13 @@ In Black Joe, speed is important. Elyse is going to try and find a faster way of She has thought of two ways of getting an _average-like_ number: - Take the average of the _first_ and _last_ number in the hand. -- Using the median (middle card) of the hand. +- Using the middle card in the hand. Implement the function `approx_average_is_average()`, given `hand`, a list containing the values of the cards in your hand. Return `True` if either _one_ `or` _both_ of the, above named, strategies result in a number _equal_ to the _actual average_. -Note: _The length of all hands are odd, to make finding a median easier._ +Note: _The length of all hands are odd, to make finding the middle easier._ ```python >>> approx_average_is_average([1, 2, 3])