code: def get_median(temp_list):
      
      num = len(temp_list)
      temp_list.sort()
      print(temp_list)
      if num % 2 == 0:
          median = (temp_list[int(num/2)] + temp_list[int(num/2) - 1]) / 2
      else:
          median = temp_list[int(num/2)]
      return median
docs: Return median