New course! Every coder should learn Generative AI!
Try a free lesson+ 5
When comparing strings, how do you calculate the maximum of them which has the highest ASCII value?
For instance, in python, print(max(SoloLearn) outputs "r"
9 Answers
+ 3
Mofey Those are their ASCII values.
https://ascii.cl
+ 10
Mofey for example try
print(ord('a'))
it give you ascii number of symbol.
+ 8
Mofey second thing
print(chr(97))
+ 5
Oh, alright, at least I can say I've learnt one new thing today thanks Jay Matthews and Николай Шаповаленко
+ 4
Oh, thanks Diego, I never knew of those
+ 3
Didn't you just answer your own question?
+ 3
Diego what I meant is how to actually calculate it where you say a=97, e=101, how exactly do you get those figures?
+ 1
<<< ( )