+ 2
how to know min and max value in case of words
how can we know if min and max value is correct if list contains words?......like list["spam","killer","master"] on what criteria does it ranks words?
2 Answers
+ 1
Python arranges strings in alphabetical order. Futher strings get sorted in order to their number of letters.
a < b < c < d < ...
and
a < aa < aaa.
so here: killer < master < spam
0
thank you