+ 1
Can someone explain why print("abe" > "Abe") is true?
4 Respostas
+ 4
When comparing string, it compares every char's ASCII value.
In general, lower case is always have a greater ASCII value than upper case.
+ 2
ascii of "a" = 97
ascii of "A" = 65
97 > 65 = True
0
Very helpful, thanks