+ 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"
8th Oct 2020, 1:33 PM
Hojiakbar
Hojiakbar - avatar
+ 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
8th Oct 2020, 1:38 PM
Ruba Kh
Ruba Kh - avatar
+ 3
Ruba Kh but is "s" not higher then "r" ? .... r, s, t,....
8th Oct 2020, 1:33 PM
Coding Cat
Coding Cat - avatar
+ 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
8th Oct 2020, 1:18 PM
Ruba Kh
Ruba Kh - avatar
+ 2
Ascii value of r is greater than For i in range 'sololean'
10th Oct 2020, 7:15 AM
Naveenkannaa
Naveenkannaa - avatar
+ 1
Capital letters are smaller.
9th Oct 2020, 3:04 PM
Amir Pourhadi
Amir Pourhadi - avatar
+ 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
9th Oct 2020, 6:44 PM
Benjamin JĂŒrgens
Benjamin JĂŒrgens - avatar
0
Use upper funktion, If you want SOLOLEARN text
9th Oct 2020, 7:55 AM
Coovgamer