An average can be dragged around by one wild value. The median is the middle value once everything is in order, and it barely notices outliers.
Task: write median(values) that returns the median of a list of numbers.
2).values always has at least one number.Once your code passes every test, a reference solution shows up here so you can compare it with yours.