I was writing some code manipulating some lists in python where I ran into this
#case1
list1 = [2, 3, 4, 5]
list2 = [2, 3, 4, 6]
#list1 > list2 is False
#case2
list3 = [1, 2, 3, 10]
list4 = [2, 4, 4, 3]
#list3 > list4 is also False
From case1 kinda makes sense cause the sum(list1) > sum(list2) but in case2 the sum(list3) > sum(list4) but still list4 is greater than list3. How does python compare two lists?