Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- sys.path.append(r'C:\Program Files (x86)\IronPython 2.7\Lib')
- from collections import Counter
- a=[]
- for x in [Counter(i).items() for i in IN[0]]:
- for z in x:
- if z[1]>1:
- b=[]
- for s in range(0, z[1]):
- b.append(z[0])
- a.append(b)
- OUT = a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement