'james' > 'Names' | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

'james' > 'Names'

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

10th Feb 2017, 12:16 PM
Percy
Percy - avatar
1 Antwort
+ 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