python inequalities use unicode character numbers this is over-simplistic for "realuse "collationis whole field of computing in itself alphabetical ordergermanz< swedisho< please notehoweverthat this is just comparison of strings it is not general comparison of text ordering text is called "collationand is very compicated field for exampledifferent languages order characters differently if you want to learn more about this fieldstart with the unicode page on collation