'james' > 'Names' | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

'james' > 'Names'

anyone can explain why 'james' > 'Names' is True?

10th Feb 2017, 12:16 PM
Percy
Percy - avatar
1 ответ
+ 2
Lower case letters have a higher value in the ASCII table than upper case. So 'j' is greater that 'N' according to the comparison which makes the entire word greater.
10th Feb 2017, 12:28 PM
Sean