Can anybody explain this ans of the challenge question?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can anybody explain this ans of the challenge question??

Why the ans of max("Sololearn") is shown "r"?? I think here the code tries to find out the maximum ASCII value here among the lettersor I just dunno!😯

9th Dec 2022, 12:46 AM
Himubab Cryptic
Himubab Cryptic - avatar
2 Answers
+ 4
Himubab you are correct it is finding the largest ASCII Value with 114 so lowercase r. Try using ord() against the a string letter to find its ASCII value. Like ord(“x”), hope this helps.
9th Dec 2022, 1:20 AM
MightBMikey
0
And how can I upload the essential screenshot here?? Help plz
9th Dec 2022, 12:47 AM
Himubab Cryptic
Himubab Cryptic - avatar