def getMedian(numericValues):
theValues = sorted(numericValues)<EOL>if len(theValues) % <NUM_LIT:2> == <NUM_LIT:1>:<EOL><INDENT>return theValues[(len(theValues) + <NUM_LIT:1>) / <NUM_LIT:2> - <NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>lower = theValues[len(theValues) / <NUM_LIT:2> - <NUM_LIT:1>]<EOL>upper = theValues[len(theValues) / <NUM_LIT:2>]<EOL>return (float(lower + upper)) / <NUM_LIT:2><EOL><DEDENT>
Gets the median of a list of values
Returns a float/int