When I clicked the “Save & Submit code” bottom, it popped out a window which said
“Something went wrong : (
Click Close to try again or refresh the page.”
"Traceback (most recent call last):
File “python/cli_runner.py”, line 152, in < module >”
I try my code in own computer, it was correct. Input all the examples the task used, and it all returned correct answers. It made me wonder was my code wrong or there was something wrong with the CodeCademy.
def median(x): x = sorted(x) middle = （len(x) + 1） / 2 - 1 middle2 = len(x) / 2 return (x[middle] + x[middle2]) / 2.0