Advertisement
repente

Untitled

Nov 10th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. user = input()
  2.  
  3. words = user.split(" ")
  4.  
  5. container = []
  6. for word in words:
  7. container.append(word)
  8. result = container.count(word) - 1
  9. print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement