How can I count the occurrences of a list item?

Given an item, how can I count its occurrences in a list in Python?

30

Leave a Comment