Hello,

Any idee what i do wrong ?

Oops, try again. median([4, 5, 5, 4]) returned 4 instead of 4.5

When i run it in an interpretor with the same list as input parameter it returns 4,5

```
def median(lista):
lista = sorted(lista)
a = 0
for i in lista:
a = a+1
new = []
if a % 2 == 1:
jumate = (a/2)-0.5
jumate = int(jumate)
new = (lista[jumate:jumate+1])
for i in new:
return i
else:
jumate1 = (a/2)-1
jumate2 = (a/2)+1
jumate1 = int(jumate1)
jumate2 = int(jumate2)
lista = lista[jumate1:jumate2]
suma = 0
for i in lista:
suma = suma + i
medie = suma / 2
return medie
```