python list 2 answers code example
Example: centered_average
# centered_average - https://codingbat.com/prob/p126968
# Return the "centered" average of an array of ints
def centered_average(nums):
output = 0
nums.remove(min(nums))
nums.remove(max(nums))
for i in range(len(nums)):
output = output + nums[i]
output = output/len(nums)
return output