I have searched and no one seems to have this specific question. Why does Python let me compare a list with an integer? For instance,
[] < 10
evaluates to False
and
[] > 10
evaluates to True
Aren't these operations ill-defined and shouldn't Python throw an exception for these operations?