Having problems running this, it says code doesn't run to end. I can run this exact code using Atom with no problems whatsoever.
Practice Makes Perfect Median
Invalid syntax error pointing to the else clause?
I don't know why this won't run
def median(x): y = sorted(x) l = len(y) if l % 2 == 0: z = (y[(l//2)] + y[(l//2)-1]) / 2 else: n = l // 2 z = y[n] return z