Write a function to calculate the middle number among three given numbers. The median is the value that would appear in the middle if you sorted your list of numbers.
Numbers: [1, 2, 3].
user
Yes.
assistant