[Python] Strange behaviour from python 3.13 on | operator

Discussão em 'Python' iniciado por Stack, Abril 17, 2025.

  1. Stack

    Stack Membro Participativo

    I was actually teaching and i ran into some strange behaviour. My code is as follows:

    a=7
    b=8
    c=7

    print(a==c | a==b)
    print((a==c) | (a==b))


    and i got false for the First statement and True for the second. Is it intended to behave like this?

    Continue reading...

Compartilhe esta Página