Group by length

Write group_by_length(words) that returns a dictionary from word length to the list of words with that length, in the order they appeared.

group_by_length(["apple", "milk", "bread", "eggs"])  ->  {5: ["apple", "bread"], 4: ["milk", "eggs"]}
group_by_length([])  ->  {}

The point is to practise grouping with defaultdict(list).

def group_by_length(words):
    ...