Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = list(map(str, input().split()))
- keys = []
- values = []
- for i in n:
- if i not in values and n.count(i) not in keys:
- print(i, ' ', n.count(i))
- values.append(i)
- keys.append(n.count(i))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement