'james' > 'Names' | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

'james' > 'Names'

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

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