Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = dict()
- x = 'thequickbrownfoxjumpsoverthelazydog'
- for i in x:
- if i in count:
- count[i]+=1
- else:
- count[i] = 1
- if count[i]>1:
- print(i, count[i])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement