Why ‘hello’ > ‘heello’ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why ‘hello’ > ‘heello’

I was just experimenting with python and figure out that: ‘helloo’ > ‘hello’ I thought that is because ‘helloo’ has more letters in it but I got confused when figure out that ‘heello’ < ‘hello’ Can anyone explain the logic here?

19th Jan 2018, 10:47 AM
Andrii Smytsniuk
Andrii Smytsniuk - avatar
1 Answer
+ 4
It means that it is farther behind in alphabetical order.
19th Jan 2018, 10:56 AM
Jacob Pembleton
Jacob Pembleton - avatar