+ 2

Max string

print(max("Sololearn")) //r Why????

24th May 2019, 7:26 AM
Leon KV
10 Respostas
+ 4
Because character 'r' is the one with highest numeric point of all the characters in a string "SoloLearn".
24th May 2019, 7:29 AM
Ipang
+ 3
devisfun Because 'n' numeric point is less than 'r' mate. Even ASCII table tells you that clearly : )
24th May 2019, 7:34 AM
Ipang
+ 2
It's about the position in alphabet. Value of 'a' is 97, 'b' is 98, and so on.
24th May 2019, 7:35 AM
Luk
Luk - avatar
+ 1
Ipang that’s interesting, why would it not be ‘n’?
24th May 2019, 7:32 AM
Rincewind
Rincewind - avatar
+ 1
Ah i understand now; i didn’t understand what you were referring to by ‘numeric point’ 😅
24th May 2019, 7:39 AM
Rincewind
Rincewind - avatar
+ 1
Luk but in my alphabet 'r' is before 's' or is it because 'r' is small and 'S' is a big letter?
24th May 2019, 7:39 AM
Leon KV
+ 1
Leon KV Yes, it is as you said . http://www.asciitable.com
24th May 2019, 7:41 AM
Luk
Luk - avatar
+ 1
https://code.sololearn.com/c2HGSk7p3a0U/?ref=app
24th May 2019, 9:30 PM
alex_shchegretsov
alex_shchegretsov - avatar
0
Is there no context between the alphabet and the numeric point?
24th May 2019, 7:37 AM
Leon KV
0
Luk okay thanks
24th May 2019, 7:43 AM
Leon KV