Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
Comparison for capital string and lowercase string?
Asked
Apr 13 '20 at 13:35
Active
Apr 13 '20 at 13:35
Viewed
23 times
0
print('G' < 'g')
The output is
True
, I don't understand. Please help me to figure out, thanks.
python
python-3.x
asked Apr 13 '20 at 13:35
Ashley
39
5
What would you have expected?
–
Thierry Lathuille
Apr 13 '20 at 13:36
1
In ascii,`G`==71,'`g`==103.
–
jizhihaoSAMA
Apr 13 '20 at 13:37
@jizhihaoSAMA Thank you so much, I understood
–
Ashley
Apr 15 '20 at 06:46
0 Answers
0