Does anyone know whats wrong with my code? Thanks

`def median(numbers): numbers = numbers.sort() median = 0 if len(numbers) == 1: median = numbers[0] elif len(numbers) % 2 == 0: High_Half = numbers[len(numbers)/2] Low_Half = numbers[High_Half - 1] median = (High_Half + Low_Half) / 2 else: Smaller_List = len(numbers) - 1 median = numbers[Smaller_List / 2] return median`