+ 2

Why print('jubaer' > 'Jubaer') is True?

jubaer and Jubaer they both are same word except the first letter j. It is in lower case in the first word and Upper case in the second word. How python defined one is bigger than other in values?

15th Dec 2020, 3:53 PM
Jubaer Rahman
Jubaer Rahman - avatar
3 Answers
+ 4
Lowercase characters have a larger ASCII code value.
15th Dec 2020, 10:01 PM
Sonic
Sonic - avatar
+ 2
Thank you
15th Dec 2020, 3:56 PM
Jubaer Rahman
Jubaer Rahman - avatar