Practice ยท 1 of 3
By Length
Implement by_length(words) returning a NEW list sorted by word length (shortest first). Use sorted with key=len. Do not modify the input list.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Sorting with key