Challenge lists - why doesn't this work [solved]

I am very confused. This code when I execute is wrong, but I cannot understand why. Pardon the commented out lines I was experimenting without the different lines actually executed.

#Write your function here
def middle_element(lst):
  #print(len(lst) % 2)
 # print((lst[int(len(lst)/2)] + lst[int((len(lst)-1)/2)]) /2)
  if len(lst) // 2 == 0:
    return (lst[int(len(lst)/2)] + lst[int(len(lst)/2) -1]) /2
    return str("Nice try")#lst[int(len(lst)/2)]

#Uncomment the line below when your function is done
print(middle_element([5, 2, -10, -4, 4, 5]))

Not exactly sure what you’re attempting here, but it looks like maybe you mean to have % instead of // in your if statement. That is if you are trying to see if the list length is an even number. Hope this helps!