Jul-17-2018, 04:32 PM
I think perfringo has the right idea, but that wouldn't capture double-quotes (
"
). I would suggest a whitelist rather than a blacklistfrom string import letters # [...] letter_count = len(char for char in chars if char in letters)