dictsstrings
Write word_counts(text) that returns a dict mapping each lowercase word to how many times it appears. Split on whitespace.
Guest mode · solve history stays on this device; code isn’t saved. Sign in to save future work
solution.py
loading editor…
Run your code to see its output, or check your solution to grade it.