Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. count = dict()
  2. x = 'thequickbrownfoxjumpsoverthelazydog'
  3. for i in x:
  4. if i in count:
  5. count[i]+=1
  6. else:
  7. count[i] = 1
  8.  
  9. if count[i]>1:
  10. print(i, count[i])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement