Oops, try again. median([6, 8, 12, 2, 23]) returned 12 instead of 8

```
def median(unsorted):
nbs = sorted( unsorted )
if len(nbs)%2 != 0 and len(nbs) != 1:
return nbs[(len(nbs)+1)/2]
elif len(nbs) == 1:
return nbs[0]
else:
return (nbs[len(nbs)/2] + nbs[(len(nbs)/2)-1])/2.0
```