+ 1
Can someone explain why print("abe" > "Abe") is true?
4 Respostas
+ 6
Please use the search bar!
https://www.sololearn.com/Discuss/2274075/?ref=app
https://www.sololearn.com/discuss/46308/?ref=app
+ 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