• Save
  • Run All Cells
  • Clear All Output
  • Runtime
  • Download
  • Difficulty Rating

Loading Runtime

Create a function called median_list.

This function will be passed a list of numbers and should return the median of the numbers in the list.


Example 1:

median_list([3,7,5,8,9,4,4,7])

Returns: 6


Example 2:

median_list([3,7,5,8,9,4,4])

Returns: 5

Reset Code