0
How python is comparing these strings?
"Apple">"Appl" And why "Apple" is greater than "Appl"?
2 odpowiedzi
+ 4
Strings are compared letter by letter according to ASCII/Unicode.
Something is 'larger' than nothing, so the extra letter will make the word larger.
It's how you order words in dictionaries too.
+ 1
HonFu thank u for the answer I got it.