Log in
← All problems

Sort words by length

easySorting and searching10 XP

Return the words sorted from shortest to longest. Words of the same length keep their original order.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 2 hidden tests.