+ 11
Max follows:
"a" is greater than "A".
"b" is greater than "a".
"z" is the greatest of all.
Since, "r" is the max.
Thomas
Keep in Mind "a" is greater than "Z"
+ 5
It is because it is capital, it consider all small alphabet is greater than capital ones
If you try print(max("sololoearn") it will be s
Because it depend on ascii characters and small alphabets starts from 97 whild capital letters starts from 65
+ 3
Ruba Kh but is "s" not higher then "r" ?
.... r, s, t,....
+ 2
max when applied to string it returns the highest alphabet in the string which is r
Highest in order like a, b, c... y, z
+ 2
Ascii value of r is greater than
For i in range 'sololean'
+ 1
Capital letters are smaller.
+ 1
Python 3 encodes strings in utf-8 by default.
The first 128 characters are the same as in https://en.m.wikipedia.org/wiki/ASCII
These include punctuation, numbers, uppercase and lowercase letters, so the letters in "Sololearn" are ordered according to the ascii table which you can find in the Wikipedia link.
'r' has the highest value (114) here, the value of 'S' is only 83
0
Use upper funktion, If you want SOLOLEARN text