input: Write a python function to get the medians of a list of numbers by excluding each element one by one.
  assert get_medians([1, 2, 4, 16, 8, 10]) == [1.5, 2, 5, 8, 6.5]
  assert get_medians([3, 7, 9, 1, 5]) == [5, 5, 5, 7, 7]
  assert get_medians([2, 14, 7, 3, 8, 12]) == [8, 8, 7.5, 8, 10, 7.5]
output: def get_medians(nums):
      def median(lst):
          n = len(lst)
          s = sorted(lst)
          if n % 2 == 0:
              return (s[n//2 - 1] + s[n//2]) / 2
          else:
              return s[n//2]
  
      medians = []
      for i in range(len(nums)):
          temp_list = nums[:i] + nums[i+1:]
          medians.append(median(temp_list))
      
      return medians