count repetitions in list python code example
Example 1: How to see how many times somting is in a list python
vowels = ['a', 'e', 'i', 'o', 'i', 'u']
count = vowels.count('i')
Example 2: python count occurrences of an item in a list
>>> [1, 2, 3, 4, 1, 4, 1].count(1)
3