0
max & min methods in lists
what's the return value of max or min methods if the list contains strings like this example: x = ["hello", "world"] print(max(x))
4 Respuestas
+ 1
Max value is. World. Min value is hello
Cuz max starts from the right side in the order of alphabet :)
0
so, basically because 'w' is greater than 'h', so world is the max and hello is the min ?
0
Yes. Right-
You can also check with playground menu in this app
0
thanks shin eun kyung for your help :)