Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inp="ciao come va"
- d=dict()
- for i in inp:
- if i not in d:
- d[i]=1
- else:
- d[i]+=1
- print (d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement