All projects
Intermediate+80 XP
Word Frequency Counter
Given a sentence, count how many times each word appears and print the results, most common first. Combines strings, dictionaries, and a little sorting.
Requirements
- 1
Split the text into words
- 2
Build a dict mapping each word to its count
- 3
Print each word with its count
Build it here — edit the starter code and hit Run:
word-counter.py · editable