SyntaxFix
Write A Post
Hire A Developer
Questions
seta = set(a) b = [a.count(el) for el in seta] a = list(seta) #Only if you really want it.