Python · The collections Module
You're grouping words by length into lists. With a plain dict you wrote if k in d: d[k].append(w) else: d[k] = [w]. What collections type removes that branch, and how?
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
