The exercise is called Practice makes perfect: Median
The error message displayed was, "median([4, 5, 5, 4]) resulted in an error: int() argument must be a string or a number, not 'list'".
I know that you can't use the int function on a string, which is what I am trying to do in my code and that is why it is not working. However, I do not know how to change my code so that it still does what I want it to do with the proper numbers becoming integers. Basically what I am wondering is how do you make a list into an integer.
Replace this line with your code. def median(lst): x =  if len(lst) % 2.0 == 0: y = 0 y+=int([len(lst) / 2.0]) y+=int([(len(lst) / 2.0) - 1]) x.append(y/2.0) elif len(lst) == 1: x.append(1) else: x.append([len(lst) / 2.0]) return x