Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. inp="ciao come va"
  2. d=dict()
  3. for i in inp:
  4. if i not in d:
  5. d[i]=1
  6. else:
  7. d[i]+=1
  8. print (d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement