Practice · 1 of 3
By Length
CHALLENGE
Difficulty: intermediate+25 XP
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.
Press Submit to check your solution.
Back to lesson: Practice: Sorting with key