[Python] Comparing Strings and Integers

Discussão em 'Python' iniciado por Stack, Junho 24, 2025.

  1. Stack

    Stack Membro Participativo

    Why is it that 55 != "hello" is true while "hello" > 35 gives you an error since there are two different data types?

    I tried seeing if leaving hello without quotes would help, but you get an error either way.

    Continue reading...

Compartilhe esta Página