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 ответов
+ 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!