[Python] "a" == 97 expression is returning always False

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

  1. Stack

    Stack Membro Participativo

    a == "97" returns false in Python.

    [​IMG]

    I wanted to know in which case it gives True. I tried all the values, but it gives output as False only always.

    ASCII for alphabet:

    a = 97
    A = 65


    Expected: when will true output comes in string with int compare.

    I want to know true scenario.

    Continue reading...

Compartilhe esta Página