I get the following response: Oops, try again. median() resulted in an error: list index out of range. I don't quite get what it means. I checked everything a couple of time but still can't see what is wrong. Thank you in advance!
def median(numbers): median=0 numbers=sorted(numbers) length=len(numbers) if length%2==0: median=median+(numbers[length/2]+numbers[length/2+1])/2 else: median=median+numbers[(length/2+1)] return median