>>> "a" < "b"
True
I suppose their ASCII codes are being compared. I would like to take a look at the documentation for str.__lt__()
to study its exact behaviour. (E.g. its behaviour when Unicode is involved.)
The documentation for str does not talk about it. And help(str.__lt__)
is not helpful.