Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = 'aa a aa a aa a b'
- x=text.split()
- for i in x:
- y = x.count(i)
- print(i,y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement