Why is the exercise telling me this is wrong?

https://www.codecademy.com/paths/computer-science/tracks/cspath-flow-data-iteration/modules/dspath-lists/lessons/python-functions-lists-cc/exercises/larger-list

#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??

I suppose if there are only two outcomes then you’ve got a 50% chance to produce the right answer, but maybe you’d want to test a little more than that?
Does it just say “wrong” or does it tell you more than that?

You might for example want to test with lists of different sizes, and change places on the lists. For example:

[1], [1, 2]
[1, 2], [1]

I already went past it but i think it said something weird like the answer was supposed to show -10 or something like that but even in their answer the answer is 5

maybe they said it should be -10 for some input other than yours? that wouldn’t be particularly weird, especially considering that your function should handle more than just the one single input you’re testing in your code