How python is comparing these strings?
"Apple">"Appl" And why "Apple" is greater than "Appl"?
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.
HonFu thank u for the answer I got it.