Skip to main content

Accepted Answer · #59 · 2026-06-02

Which answer is correct?

Difficulty 1/3

How to play

Read the Stack Overflow–style question, then pick the one correct answer from four plausible options. Watch out — wrong answers often have high fake votes.

How to count occurrences of items in a Python list?

I have a list of words and want a dictionary mapping each word to its count. What's the best approach?

pythondictionarycounting

Loading your progress...

Press 1 through 4, or tap a numbered choice, to answer. Back to hub