"monty" < "python"

Grant Edwards invalid at invalid.invalid
Wed Mar 20 17:04:28 CET 2013

On 2013-03-20, franzferdinand <melo.dumoulin at hotmail.com> wrote:
>>>> "Monty" < "Python"
> True
>>>> "Z" < "a"
> True
>>>> "Monty" < "Montague"
> False
> What's the rule about that?

I don't know what "that" refers to in your question, but 'a' comes
before 'y' if that's what you're asking.

> Is it the number of letters or what?

Individual letters are compared until a mismatch is found.

Grant Edwards               grant.b.edwards        Yow! You were s'posed
                                  at               to laugh!

More information about the Python-list mailing list