Middle of Three
easypy_basicsImplement get_middle_value(a, b, c).
Return the middle (median) of three integers — the one that is neither the
smallest nor the largest. sorted is not allowed; use arithmetic with
min/max instead. For example get_middle_value(3, 1, 2) == 2.
Constraints
- no sorted
Your solution
Edit get_middle_value and run the real pytest suite in your browser — no install required. Your code is saved locally.
Loading the Python runtime (first run only)…
Hints
Hint 1
The three values minus the smallest and the largest leaves the middle one.