+ 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 ответ
+ 4
It means that it is farther behind in alphabetical order.
19th Jan 2018, 10:56 AM
Jacob Pembleton
Jacob Pembleton - avatar