Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user = input()
- words = user.split(" ")
- container = []
- for word in words:
- container.append(word)
- result = container.count(word) - 1
- print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement