Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- names = {
- 'Tim':{'Tim', 'Timmy', 'Timster'},
- ... other names here.}
- # add any occurrence of Tim names to Tim and other occurrences of other names to their main name.
- total_tim = Counter(tim) + Counter(timmy) + Counter(timster), etc..
Add Comment
Please, Sign In to add comment