0
Does (max) work for other types other than ints?
print(max(“Sololearn”)) Results in “r” which quite frankly I don’t understand at all... Thank y’all!
1 Resposta
+ 3
It evaluates each character as it's corresponding Ascii code. So "a" is 97, etc. and in this case "r" has the largest Ascii code.
Have a look:
https://www.ascii-code.com/