returning 4.0 instead of 4.5

```
Replace this line with your code.
def median(r):
r=sorted(r)
t=len(r)
if t%2==0:
p=(t/2)
q=(t/2)-1
s=float((r[p]+r[q])/2)
return s
else:
if t==1:
return r[t-1]
else:
p=(t+1)/2
return r[p]
```