I have two lists:
a = ['computador', 'caderno', 'lapiseira', 'caneta', 'cadeira', 'mesa']
b = ['computador', 'celular', 'café', 'água']
When I try to to compare list length with if condition, the result is exactly what I expected: list a is greater than list b.
if len(a) > len(b):
print('a > b')
else:
print('a < or = b')
The output is "a > b".
I tried the same comparison without len and the result is the opposite: "a < or = b"
if a > b:
print('a > b')
else:
print('a < or = b')
What is python comparing in the second case?