I recently discovered a typo in my program
while len(first_list) > second_list:
do_stuff
I played around with this and discovered that 5 < ["apple"] == True
and 5 > ["apple"] == False
Why does Python allow these sorts of comparisons? What is being evaluated under the hood to determine that 5
is less than ["apple"]
?