
Implement by_length, which returns the words of a list ordered from shortest to longest.
by_length(["kettle", "on", "tea", "mug", "a"])['a', 'on', 'tea', 'mug', 'kettle']by_length(["dune", "", "ox", "", "fern"])['', '', 'ox', 'dune', 'fern']by_length([])[]by_length.py
Run the tests to grade your code
Implement by_length, which returns the words of a list ordered from shortest to longest.
by_length(["kettle", "on", "tea", "mug", "a"])['a', 'on', 'tea', 'mug', 'kettle']by_length(["dune", "", "ox", "", "fern"])['', '', 'ox', 'dune', 'fern']by_length([])[]by_length.py
Run the tests to grade your code
Variables will appear here