Python Program to Count the Occurrence of an Item in a List
freq = ['a', 1, 'a', 4, 3, 2, 'a'].count('a')
print(freq)
Output
3
freq = ['a', 1, 'a', 4, 3, 2, 'a'].count('a')
print(freq)
Output
3