[Python] Python evaluation of expression [duplicate]

Discussão em 'Python' iniciado por Stack, Novembro 28, 2024.

  1. Stack

    Stack Membro Participativo

    Python yields different answers

    >>> 0 < 0 == 0
    False

    >>> (0 < 0) == 0
    True

    >>> 0 < (0 == 0)
    True


    is this a bug?

    Python 3.11.10 (main, Sep 7 2024, 18:35:41) [GCC 11.4.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.

    Continue reading...

Compartilhe esta Página