Grouping words by their length using a defaultdict

Question Q4.2.5

Modify Example E4.8 to use a defaultdict to produce a list of words, keyed by their length from the text of the first line of the Gettysburg Address.


Solution Q4.2.5