Aug-07-2024, 10:35 PM
sorry for my bad english,
i have this problem :
please help me!!!
i have this problem :
1 2 3 4 |
thelist = [ "t9" , "t8" , "t11" , "t10" ] print (thelist) thelist.sort() print (thelist) |
Output:['t9', 't8', 't10', 't11']
['t10', 't11', 't8', 't9']
expected output is :Output:['t8', 't9', 't10', 't11']
i google for [python string "logical" "sorting"] but found nothingplease help me!!!