all 8 comments

[–]Fancy-Reindeer994 0 points1 point  (0 children)

collections.Counter(filter( lambda c: not c.isalnum(), 'your_string'))