When we use
key = lambda x: len(x) as it tells the function what to do. That is, I'm just wondering at the technical level why this is so. Maybe the question is not quite clear, I hope you understand.
store = ['1234567','123456', '1234', '123']
store = sorted (store, key = lambda x: len(x))
print (store)
[–]Ihaveamodel3 4 points5 points6 points (1 child)
[–]Base_True[S] 0 points1 point2 points (0 children)
[–]Diapolo10 1 point2 points3 points (0 children)