code: def median(values):
      
      values.sort()
      n = int(len(values) / 2)
      return values[n]
docs: Return median value for the list of values.
      @param  values:     list of values for processing.
      @return:            median value.