Using count() method
freq = ['a', 1, 'a', 4, 3, 2, 'a'].count('a') print(freq)
count() method, pass the item to be counted. As shown above,
'a' is passed, which gives the total number of occurrences of character
You can learn more about
count() at Python count().