'james' > 'Names' | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

'james' > 'Names'

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

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