Group Words by Length

Write a code that takes a list of words and returns a dictionary where the keys are word lengths and the values are lists of words with that length.
["apple", "banana", "pear", "kiwi", "grape"]
Total : 0 Discussion
Login