0
Wy â7â > â10â is True?
I dont get it. wy the Output is âseven is moreâ? if "7" > "10": print(("seven is more"))
2 RĂ©ponses
+ 6
They are compared as words are compared in a dictionary - lexically.
That's because they model language mainly and are supposed to behave like language.
In a dictionary, 10 would come before 7 (just as 'and' comes before 'by'), so it's smaller.
If you want to know more, google the ASCII table and the unicode order.
+ 1
thanks!