Sujet : Re: A problem with str VS int.
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 10. Dec 2023, 12:09:33
Autres entêtes
Organisation : Stefan Ram
Message-ID : <comparison-20231210120814@ram.dialup.fu-berlin.de>
References : 1
"Steve GS" <
Gronicus@SGA.Ninja> writes:
I converted the variable to int along with the if statement
comparison and it works as expected.
|>>> "2">"10"
|True
because, in a dictionary, the word "2" would be inserted after "10".