How does deleting the words you just reported walk you down the frequency ranking — and what does that cost the caller?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
A short chant has already been counted into this frequency dictionary:
counts = {'sun': 4, 'moon': 7, 'sky': 2, 'star': 7, 'sea': 5}
Assign to highest the largest frequency in it — the number, not the word. Work it out from the dictionary rather than typing the number you can see with your eyes. Two pieces are all you need: the dictionary method that hands back every value, and max.