I\'m wondering how Python does string comparison, more specifically how it determines the outcome when a less than (<) or greater than (>) op
<
>
Strings are compared lexicographically using the numeric equivalents (the result of the built-in function ord()) of their characters. Unicode and 8-bit strings are fully interoperable in this behavior.