Advertisement
dimicorn

5

Jun 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. n = list(map(str, input().split()))
  2. keys = []
  3. values = []
  4. for i in n:
  5.     if i not in values and n.count(i) not in keys:
  6.         print(i, ' ', n.count(i))
  7.         values.append(i)
  8.         keys.append(n.count(i))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement