#Write your function here

def larger_list(lst1, lst2):

if len(lst1) >= len(lst2):

return lst1[-1]

else:

return lst2[-1]

#Uncomment the line below when your function is done

print(larger_list([4, 10, 2, 5], [-10, 2, 5, 10]))

## my code was as follow

def larger_list(lst1, lst2):

lst1_count = lst1.count(lst1)

lst2_count = lst2.count(lst2)

if lst1_count >= lst2_count:

return lst1[-1]

else:

return lst2[-1]

they both give the right answer is there something that i did that will be wrong??