Write by_length(words) returning a list of [length, sorted distinct words of that length], ordered by length, using comprehensions only.
by_length(['sql', 'r', 'pandas', 'spark', 'r', 'sas']) → [[1, ['r']], [3, ['sas', 'sql']], [5, ['spark']], [6, ['pandas']]]
by_length([]) → []
Submit runs 3 tests, including hidden edge cases.
Run your code to see the output here.