+ 1
why does this happen in all programming languages
syntax here of python but logic is same: if 'ABC'<'AC' : print(true) else: print(false) comment down the reason:
1 Réponse
+ 3
Strings get compared letter by letter until one is bigger (according to ASCII or unicode depending on the language).
first letters: A == A
second letters: B<C
So second string is bigger.