Log in
← All problems

Word frequency

mediumDictionaries20 XP

Words in text are separated by spaces (possibly several). Return a dictionary (JavaScript: object) mapping each word, in lower case, to how many times it appears.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 2 hidden tests.