Say my list is ['a', 'a', 'b']
how would I tell that the letter a
appears twice? I know it's probably simple but I can't get my head around it...
Asked
Active
Viewed 260 times
0

Qwertykey
- 21
- 5
-
https://docs.python.org/2/library/collections.html#collections.Counter – taras Jun 23 '17 at 19:05
-
This question was already answered here: https://stackoverflow.com/questions/23240969/python-count-repeated-elements-in-the-list – Filipe Santos Jun 23 '17 at 19:07