I don’t know what is the mistake here. please tell me the reason
#Write your function here
def middle_element(lst):
m = len(lst)
if m%2 != 0:
return lst[int(m/2)]
elif m%2 == 0:
return (lst[(m/2) -1] + lst[m/2])/2
#Uncomment the line below when your function is done
print(middle_element([5, 2, -10, -4, 4, 5]))