## Oh i get it, that's a step forward to the solution... but i've been thinking and all i could come up with was:

def median(lst):

sort=sorted(lst)

even_index=lst[0:]/2

even_index2=even_index-1

if len(lst)%2==0:

return even_index+even_index2/2.0

elif len(lst)<=1:

return len(lst)

else:

return even_index

lst.append(sort)

## print median([1,2,3])

Got this error: Traceback (most recent call last):

File "python", line 13, in

File "python", line 3, in median

TypeError: unsupported operand type(s) for /: 'list' and 'int'

Even if the ''lst[0:]/2" thing worked, i have no idea how i could access its value to the sum part.

Edit: Oh geez, just noticed that i've basically done the same mistake than before lol

I'm not in my best day as you can see.

Edit 2: That's the best i came up with mate:

```
def median(lst):
sort=sorted(lst)
even_index=len(lst)/2
even_index2=even_index-1
value=lst[even_index]
value2=lst[even_index2]
if len(lst)%2==0:
return value+value2/2.0
elif len(lst)<=1:
return len(lst)
else:
return value
lst.append(sort)
print median([1,2,3])
```

Got this error though: Oops, try again. median([4, 5, 5, 4]) returned 7.5 instead of 4.5