Previous
Iteration
5 / 5
Next
Dictionary iteration
Hint
Write a function longest_frequent
with one parameter word_hist
that is a histogram of words (as a dictionary).
The function should return the longest word that occurs at least 5 times.
For example, if d = {'love': 5, 'peace': 4, 'joy': 7}
then most_frequent(d)
must return love
.
Help
Solve
Reset
Test results
Test result #
Expected output
Your output