how to know min and max value in case of words | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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?

19th Aug 2016, 7:18 AM
Mehul Chaturvedi
Mehul Chaturvedi - avatar
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
19th Aug 2016, 8:53 AM
Amarie
0
thank you
19th Aug 2016, 8:55 AM
Mehul Chaturvedi
Mehul Chaturvedi - avatar