Here's a tiny Python function that returns the median of three numbers:

```python
def median3(a, b,